yvann-ba/Robby-chatbot

Reply "Thanks and have a nice day!"

Closed this issue · 1 comments

jerpic commented

Hello,

It's not an issue, just a question.

I would like that the chatbot replies "Thanks and have a nice day!" if the user writes "Thanks for your help or for the information or simply Thanks!". For that, I added some instructions in the qa_template variable, unfortunately that works only if the user enters one of these 3 sentences at the beginning of the discussion.

Do you know how to solve that? What's the best way to achieve this?

Thanks!

The problem with LLM is that it always retains a form of freedom in the way it responds, so I advise you to directly code the addition of these responses with conditions and add the strings. You can also try using gpt4 instead, it produces better results. have a nice day!