Find answers from the community

Updated 2 months ago

When using the SubQuestionQueryEngine I

When using the SubQuestionQueryEngine, I keep running into the issue of 'KeyError: 'comparison'. I have multiple documents as query engine tool and feed them in the query_engine_tools parameter in constructing the SubQuestionQueryENgine.
L
M
14 comments
seems like it's hallucinating the name of an index/query_engine_tool ?

What kinds of names did you use?
I just use the file name as teh tool name.
are the names super similar or confusing?
I'd say they are similar but not confusing
can you share them? Just wondering why it's hallucinating a name. Usually it helps to re-engineer the names, at least in my experience
XXX AUM May 2023.pdf, XXX AUM April 2023.pdf
huh, well, I guess the LLM is just being silly then haha

I feeeeeell like I encountered this last week, and then we changed the prompt to better avoid this. What llama-index version are you on?
I'm actually quite far behin on 0.6.30
Oh that's why sometimes it works sometimes it doesn't
oh wow, that is quite far behind πŸ˜… Updating may... be a little painful lol
I can't even remember what's changed since then
feels like 0.6.30 was a lifetime ago
Yea sadly we haven't got the Azure Function calling API, so I was reluctant to change
ah, that makes sense
Add a reply
Sign up and join the conversation on Discord