Find answers from the community

Updated 3 months ago

there is a way i can tell to the

there is a way i can tell to the ContextChatEngine use only the documents / nodes of the current index? because the problem now is that if i use an index example and example has no info about cars the RAG will always reply
L
s
6 comments
Really the only way is controlling with prompts πŸ˜… Or maybe doing some "test retrieval" with the user message, and if the similarity score is too low, don't call the chat engine?
thanks logan as always for the response i image that but i want a final confirm hahahah
maybe i will study something like more granually index separation and an agent that can understand what index to use, the only problem in my showcase with the agent is that it will reply to any question not only the question related to the context
because not all the times tha agent make a function call (i try ContextAgumentedOpenAiAgent not the normal one with param that force function calling hahha)
Prompt engineering may help as well, with the system prompt
Add a reply
Sign up and join the conversation on Discord