Knowledge base VS ai
# 🤝help
e
Imagine you're gonna make a chatbot for a doctor, in this case a vet. Which should I use to know if the client's telling a problem of his pet to the doctor and if it match with the services and available pet list (newbie at this) If the client's prompt matches with the available service then continue to the next workflow If not just say something like the doctor doesn't attend that problem
g
Sounds like you need a KB using information that lists all the areas the Doctor practices etc.. The more detailed and structured the data is, the better the Knowledge Agent's responses will be.
Note: the KB uses AI under the hood (RAG) but is different than AI Task. Both will consume AI spend.
e
hmm okey, a full detailed knowledge base
but how do you consider wether if the bot got information from the kb or not
g
you gotta test it A LOT
e
a lot
haha seems like that
g
you can do that from w/in the emulator or using the special Ask Question tab in the KB
e
that's good
hmm
g

https://tenor.com/bpEm0.gif

e
wow its great that
but last question Carolyn
how could you check if it has a response to continue with other workflow?
if the client input matches the kb
then that +++ if not end conversation
g
there's a handy guide that shows you the most common variables that you might need. There's a few for the knowledge agent you can use. Basically you need to have some logic in an Expression Card that will handle the case when something is or isn't in the KB. Here's an example. You can also have the expression card write the logic for you by saying what you want. Keep in mind for a negative statement it will begin with !
e
the variables makes sense
but why do the ask questions works but not the chatbot itself?
same question about cardiology, works in kb not in chatbot
;/
g
2 questions: Is your Knowledge Agent turned on? Is there a book icon 📖 in the capture card you are using?
e
yea of course
g
set to search all KBs?
e
just the "Servicios" kb, tried rn with your all kbs and didn't worked in chat
on the other hand into ask question it works, and that's weird
g
what do the logs say?
e
this?
also this
actually this is the first card, the other one is for checking if the kb exists has you said before
g
hmm. maybe try switching the order of your nodes with IS IN KB above NOT IN KB...
e
the same...
well actually when asking "what services do you have" it list me what I gave to the knowledge base
but only works for this, not when asking for a service like cardiology
g
hmm
e
in that case for specific ones only work in the kb "ask a question"
g
that's odd. I'm not sure how the KB differs from the Ask Question preview and in chat.
try adding a new rich text (or table) with the Question & Answer for the ones that don't work and see if it improves the responses in chat.
The test Ask Question KB feature is kind of newer so i don't usually depend on it (and not in the habit of using it). chat is what matters in the end so that's usually where I test KB respnoses. Sometime it takes some work to make the KB give the best answers -- especially for FAQs. I find tables with question and answer are ideal for short precise questions and answers.
e
you sound like you've been using it for a while
let me see with tables
g
Long enough to know some of the quirks ☺️ This livestream focused on KB's. Maybe it could help explain things more in depth or give you some fresh perspectives.

https://youtu.be/uMq-oqP5U98

e
didn't worked
im not going to sleep today again 💀
sounds good, anyways thanks carolyn you're so kind
g
Sleep improves debugging skills. 😴 If you need more help tomorrow, maybe you can share the bot file and get some more eyes on the problem. Good luck!
c
Great teamwork!!! ❤️
3 Views