Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
11–20 of 59 posts
Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#122. If anyone is observing significant gains from incorporating knowledge graphs into the retrieval step, what kind of a knowledge graph are you working with, what is your retrieval algorithm, and what technology are you using to store it?
Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#13Any tips on accomplishing this in Postgres with pg_vector?
Supabase has some good examples on their website, search for hybrid search. I needed to tune the function they have there but it should show you how to approach it.
Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#14Any tips on accomplishing this in Postgres with pg_vector?
Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#15Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#16I've implemented a very similar RAG hybrid solution, and it has improved LLM responses enormously. There are other things you can do too that have huge improvements, like destructuring your data and placing it into a graph structure, with queryable edge relationships. I think we're just scratching the surface.
Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#17https://github.com/Azure-Samples/rag-postgres-openai-python/
Here's the RRF+Hybrid part: https://github.com/Azure-Samples/rag-postgres-openai-python/...
That's largely based off a sample from the pgvector repo, with a few tweaks.
Agreed that Hybrid is the way to go, it's what the Azure AI Search team also recommends, based off their research:
https://techcommunity.microsoft.com/t5/ai-azure-ai-services-...
Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#18Re: Better RAG Results with Reciprocal Rank Fusion and Hybrid Search
#19We also included supporting data in that write up showing you can improve significantly on top of Hybrid/RRF using a reranking stage (assuming you have a good reranker model), so we shipped one as an optional step as part of our search engine.