-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: Hybrid search? #12381
Comments
Hey @chengyjonathan! Great to see you venturing into new territories again 🚀 Based on the information provided in the LlamaIndex codebase, it appears that the framework already supports a hybrid search mechanism involving lexical, semantic, and knowledge graph retrieval. This is primarily facilitated through the The hybrid search functionality is implemented in the Here's a brief overview of how the hybrid search works:
You can find this implementation in the llama-index-core/llama_index/core/indices/knowledge_graph/retrievers.py file. I hope this helps! If you have any further questions or need more clarification, feel free to ask. Sources
|
I think any custom retriever could do this. Or using the query fusion retriever and passing in all the retrievers you want to mix https://docs.llamaindex.ai/en/stable/examples/retrievers/relative_score_dist_fusion/?h=query+fusion |
Forgive me if this is wrong, but would I need two separate indexes? One composed of kg triplets? Or could I just mix bm25, embedding based, and a kg based retriever? |
@chengyjonathan 3 retrievers, that then get composed into one. How you get those retrievers is up to you 👍🏻 |
If I had a KnowledgeGraphRAGRetriever and a VectorIndexAutoRetriever and wanted to fuse them - would the SQLAutoVectoryQueryEngine framework but for Knowledge Graphs be the correct approach over this Fusion retriever? https://docs.llamaindex.ai/en/stable/examples/query_engine/SQLAutoVectorQueryEngine/ |
Question Validation
Question
Hi there!
I'm wondering where would be the best place to get started if I wanted to implement a lexical, semantic, graph search hybrid.
I see the examples for doing lexical + semantic retrieval.
And I was wondering if there are any guides for doing semantic + kg retrieval.
The text was updated successfully, but these errors were encountered: