Find answers from the community

Updated 3 months ago

Hello. I am using OpenAIAgent along with

Hello. I am using OpenAIAgent along with QueryEngineTool and FunctionTool, but I am facing an issue where, despite training on specific data, it still returns results from outside the trained dataset. I would like to know if there are any options to limit responses to only the data I have trained on?
Thanks all.
r
B
3 comments
This looks like a prompt engineering problem. Try using few shot examples? Maybe @Logan M can help with some specific techniques to stop the hallucinations.
I'll give you an example: the chatbot has two indexes with many mathematical formulas taught, and OpenAIAgent answered my questions about these formulas efficiently. FunctionTool does a good job of solving some exercises. It still gives me answers when I ask about other topics, like literature, which is something I don't want to happen. I know OpenAIAgent's goal is to advance knowledge. Is it possible to prevent it from using external data or give me keywords so I can use both indexes and FunctionTool?
How to resolve this issue @Logan M . Please assist me
Add a reply
Sign up and join the conversation on Discord