harsh-harlequinā¢2y ago
answering follow up questions, as long as the user stays in the intent
hi guys, so i have a question:
i want the chatbot to answer the questions as long as it is staying in the intent so for example
the chatbot wants to know "when does the library open" --> intent is about opening hours, "and the cafe" --> question is still about the opening hours and since there was no new intent detected, the chatbot stays in the same intent and should know the questions is about the opening hours so the chatbot answers correctly instead of saying sorry i didnt understand your questions ... since naturally yes "and the cafe" is no complete question, but since the chatbot knows its still about the intent, it should know what information the user wants ...
and then if the user asks "how big is the library" the chatbot knows a theres an intent about the size of the buildings now, so it goes to the specific intent and so on
that way i would save myself some precious tokens, since the memory step where the chatbot always looks at the conversation history/last responses/last utterances does consume a lot of tokens
i hope my question makes sense and i hope someone has a helpful answer maybe @Daniel š„²
2 Replies
flat-fuchsiaā¢2y ago
Hmm the best option would be memory here.
But the other thing you can do is set a variable called ācontextā or something right after the intent.
So if the intent is opening hours - the variable context says āopening hoursā
Then you could pass that as part of the prompt
harsh-harlequinOPā¢2y ago
mhmmm the variable idea sounds good to me, i will try it š„¹ thank youuu