Find answers from the community

Updated 3 months ago

Chat

Hello, What is best Chat Modes recommended to use with RAG query engine, when I need to refine answer base on chat history and new user questions ?

-condense_question - Look at the chat history and re-write the user message to be a query for the index. Return the response after reading the response from the query engine.
-context - Retrieve nodes from the index using every user message. The retrieved text is inserted into the system prompt, so that the chat engine can either respond naturally or use the context from the query engine.
-condense_plus_context - A combination of condense_question and context. Look at the chat history and re-write the user message to be a retrieval query for the index. The retrieved text is inserted into the system prompt, so that the chat engine can either respond naturally or use the context from the query engine.

What is better recommended to use ?
Thank you
L
A
2 comments
Imo I like condense plus context. Feels the most natural and accurate
will try this then, thanks @Logan M
Add a reply
Sign up and join the conversation on Discord