How I can change the standard answer for information not found #2096
Replies: 1 comment
-
Answer generated by a 🤖 AnswerI understand that you're looking to customize the default response of your chatbot when it can't find the information it needs. You want to change the standard "I don't know" response to something more engaging like "let's check the system". To achieve this, you can modify the Here's how you can do it: export const DEFAULT_QA_PROMPT = /*#__PURE__*/ new PromptTemplate({
template:
"Use the following pieces of context to answer the question at the end. If you don't know the answer, just say let's check the system, don't try to make up an answer.\n\n{context}\n\nQuestion: {question}\nHelpful Answer:",
inputVariables: ["context", "question"],
});
const system_template = `Use the following pieces of context to answer the users question.
If you don't know the answer, just say let's check the system, don't try to make up an answer.
----------------
{context}`; In the above code, replace the text "just say that you don't know" with "let's check the system". This will change the default response when the chatbot can't find the information it needs. Please note that this is one potential solution and there might be other ways to achieve the same result depending on your specific setup and requirements. If you find this solution helpful and think it might benefit others, I encourage you to make a pull request to update the documentation. This way, other users facing the same issue can easily find this solution. SourcesThis response is meant to be useful, save you time, and share context. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need some help with my chatbot everybody when I ask something without results in documento the standard answer is: "I don't know"
Is there any way I can change it to something like "let's check the system"
Beta Was this translation helpful? Give feedback.
All reactions