Find answers from the community

Updated 4 months ago

Hi, I see there is

At a glance
Hi, I see there is SubQuestionQueryEngine , is there anything with the same function for ContextChatEngine? Thanks in advance.
L
s
8 comments
No, that's not really how context chat engine works.

You'd probably want to use an agent at that point
What is the different between this agent and a context chat engine + sub question query?
Context chat engine works by doing retrieval i.e. on every user message, it runs index.retrieve() and puts the retrieved text into the system prompt. Then, along with the chat history, the LLM responds

An agent will look at the chat history + list of tools, decide if it needs to invoke a tool, and then interpret that tool response to decide if it needs to run another tool or return to the user
Oh I see.
So context chat: retrieval => context + chat history => llm
agent: chat history + tools => select a tool (like a sub-question query engine as a tool) => return
Am I correct? 🧐
Many thanks, man
Add a reply
Sign up and join the conversation on Discord