Find answers from the community

Updated 7 months ago

Question regarding RouterQueryEngine,

Question regarding RouterQueryEngine, the LLM response with Choice 2, but the router code is choosing the wrong agent (e.g: Selecting query engine 1: The question 'Sequenom has cash through what date?' is a company financial question, which is best answered using the approach described in choice 2. This choice is specifically mentioned as useful for answering questions about a company's cash, which is directly relevant to the given question..)

Has anyone seen this issue in that module (it was working fine so far with 2 agents, now when i introduce the third one its failing)
L
l
2 comments
When the LLM is presented with choices, the numbering starts at 1

When that log gets printed, the numbering is reset back to zero indexing

So the LLM selected choice 2, which is actually the query engine at index location = 1
huh, thx for the response @Logan M , breaking my head with this, that help's, let me try debugging the code
Add a reply
Sign up and join the conversation on Discord