Find answers from the community

Updated 3 months ago

Hi all, I built a multi-document agent

Hi all, I built a multi-document agent according to this tutorial: https://docs.llamaindex.ai/en/stable/examples/agent/multi_document_agents-v1/, but I am getting very bad performance on the ObjectIndex retriever. I am not sure what index it is using retrieve the right agent. Does anyone have an idea? Thx.
L
n
4 comments
its just using a vector store index. You might have to adjust the top k, or even use a reranker
Thank you for your quick reply @Logan M. I realize it's a vector store index, but my question is what is being indexed? The QueryEngineTool that each document agent is embedded in has name and description in its metadata, and I though this is what is being indexed and searched. But even in simple cases where the name is "Document_1", the retriever does not return the right agent when the query is just "Docuent_1".
This is the function for creating the nodes to be embedded

So basically the name and description

If the names and descriptions are super generic (document_1, document_2), it will not work very well
Attachment
image.png
Thank you @Logan M , that makes sense. For my use case it will be very common for users to request information using simple document names. I am going to experiment with using an AutoRetriever that filters using metadata.
Add a reply
Sign up and join the conversation on Discord