Find answers from the community

Updated 3 months ago

Is there an error here or am I just

Is there an error here or am I just stupid ?
https://docs.llamaindex.ai/en/stable/examples/agent/multi_document_agents-v1.html

They built a custom retriver that creates a sub question tool, but how can the main agent find the tool after ?

I get an error where sometimes it tries finding the tool but it's not in the mapping ig
L
t
7 comments
Sorry, whats the issue?

It defines a vector and summary index tool for each file, along with an agent on top of those two tools

Then using an agent for every document, it creates a top-level agent
When querying the top_agent, it tries accessing the tool that isn’t mapped
Because it was created during the retrieval
🤔 I think this is just the LLM hallucinating a tool name right? What LLM are you using?
No the compare_tool
is created during the retrieval phase in the example
hmm yea idk. It just sounds like its hallucinating tool names no?

(tbh I see the custom object retriever returns the tools + the sub-question tool that was generated on the fly. If it was me I would only return that single tool, since its already created with the retrieved tools)
Add a reply
Sign up and join the conversation on Discord