Find answers from the community

Updated 9 months ago

I have several chorma DB collections,

I have several chorma DB collections, and I want to route queries to the most relevant collection based on a similarity score. Ideally, the document with the highest similarity score within a collection would be retrieved. Can LlamaIndex leverage its retrieval capabilities to achieve this?
L
1 comment
This would just be a normal router (assuming you have some description of each collection)

This can be done using the LLM or embeddings, up to you

Embeddings: https://docs.llamaindex.ai/en/stable/examples/query_engine/RetrieverRouterQueryEngine/

LLM:
https://docs.llamaindex.ai/en/stable/examples/query_engine/RouterQueryEngine/
Add a reply
Sign up and join the conversation on Discord