Replies: 2 comments 3 replies
-
To stop out-of-context questions from being answered, you can use specific prompts designed to instruct the model to only answer questions based on the given context and to explicitly state if it does not know the answer. Here are some steps and code snippets to help you achieve this:
By following these steps and using the provided code snippets, you should be able to prevent out-of-context questions from being answered by ensuring the model only responds based on the given context and explicitly states when it doesn't know the answer [1]. |
Beta Was this translation helpful? Give feedback.
-
@dosu |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
What can I do to stop out of context questions from occuring?
System Info
[email protected]
platform (mac)
node 20.10.0
pnpm 9.4.0
Beta Was this translation helpful? Give feedback.
All reactions