Replies: 2 comments
-
You dont need an agent tool for this. all you need to modify the prompt. The existing prompt force the chain to only look into the document and if the question is out of document, chain is supposed to not respond. all you have to do is change your prompt. |
Beta Was this translation helpful? Give feedback.
-
You may want to take a look at #25780 |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm developing a chatbot based on my own data. The chatbot uses gpt-3.5-turbo mode and the chain ConversationalRetrievalChain and ConversationBufferMemory to manage the history. Everything works well.
However, I'm struggling to find the solution out to solve my simple problem : If the user after some exchanges with chatbot enters a polite phrase to thanks the chabot like "Thanks for the information" or "Many thanks!" etc... the Chatbot must reply "It was a pleasure to talk with your, have a nice day!".
I tried to add an instruction in the prompt, it doesn't work well. Also, I wonder if I should use a custom Tool. Unfortunately, I don't know how to do that with the chain ConversationalRetrievalChain.
Any help would be very much appreciated.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions