#How to use Knowledge Base (beginner friendly)

1 messages · Page 1 of 1 (latest)

sudden hatch
#

Greetings everyone! One unique thing about MyShell is that they provide a feature called “Knowledge Base”, which allows us creators to add URLs to the chatbots as their “external brain”. So, how to use it, what is it good for, and how does it look in action? I will provide my opinions on this based on my own experience.

Disclaimer: Please note that I am not too knowledgeable about the technical aspect, this is mostly from my own observation.

TL;DR:

  1. How to use it: copy and paste the URL of whatever website your bot needs to know, like a wiki page for example
  2. What it is good for: it works with extensive lore (for my chatbots that imitate game characters), extensive knowledge (a psychologist bot needs to know the whole DSM-5), or something that updates online in real time (like stock market). Anything that you can’t or don’t want to type endlessly into the prompt.
#

Detailed version (with examples):

How to use it? The interface is pretty straightforward: Whatever you want your bot to read and know about, you can just paste the URL in and import it, then your bot will refer to them, even updating in real time.
For example, if you make a bot on therapy, you can give it the URL of DSM-5 (the official manual for therapists and psychologists). Or, in my case, I made a bot based on an existing character named Wanderer from the game Genshin Impact, which has very complicated lore and backstory, so I fed him the lore page from the Genshin Impact wiki.

#

Let’s see how well the bot does in action:
The conversation below has many references to his lore (which I can confirm are all accurate), but let’s check this “Katsuragi” guy.

#

On the wiki, Katsuragi was the one that found Wanderer from a long time ago and brought him to a village, where he was then named Kabukimono. The place was then later destroyed in a terrible disaster, which was the beginning of his endless and eventful wandering. As we can see, the bot talked about the events just like how it happened, and it even commented on how it was a time of peace, and all is in the past now.

#

Knowledge Base only works with rich text:
Sometimes, the website you want to use for the bot has tables, which sadly wouldn’t work well with Knowledge Base. For example, the character Wanderer has many in-game voice-lines that the bot may use or mimic, but on the Genshin Impact wiki they are in a table:

#

In that case, I reformatted them into plain text on a google doc, which I then set to “anyone with the link can see”.

#

And then, the bot can now refer to those voice-lines with ease.

#

Afterwords:

And that is all that I know about Knowledge base. In conclusion, it is where your bot gets "facts" from, wether it's real facts (like DSM-5) or the lore in games. You can type out everything on a document, then fix it later in real time, which is a very good way for you to not have to type thousands of words into a prompt, and then go back to fix it. Happy creating!

pine ridge
#

ahhh just what i needed for a bot i wanted to make for model testing, thank you luci hanyaCheer

honest gyro
#

Thankyou, this is what I need. You fulfill my desire master. anime_pink_zero_two_clapping

sudden hatch
#

Glad to be of help, guys ❤️ I’m looking forward to your bots with this new knowledge base!

tepid cove
#

Oh I didn't notice this version before, it's better than the official version