Comment on Better RAG Results with Reciprocal Rank Fusion and Hybrid SearchComments−cpursley2yAny tips on accomplishing this in Postgres with pg_vector?−pamelafox2yI commented above with a pgvector example that does it-https://news.ycombinator.com/item?id=40527925−flexzuu2ySupabase 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.−kiwicopple2yHere is our doc with RRF:https://supabase.com/docs/guides/ai/hybrid-search−cpursley2yI'm actually doing something like that already, I'm mostly referring to the Reciprocal Rank Fusion (RRF) part of this to squeeze more out.−evv5552yLlamaindex rerank module−cpursley2yThanks! Not using Python, but this is still really useful.
Comments
Any tips on accomplishing this in Postgres with pg_vector?
I commented above with a pgvector example that does it-
https://news.ycombinator.com/item?id=40527925
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.
Here is our doc with RRF:
https://supabase.com/docs/guides/ai/hybrid-search
I'm actually doing something like that already, I'm mostly referring to the Reciprocal Rank Fusion (RRF) part of this to squeeze more out.
Llamaindex rerank module
Thanks! Not using Python, but this is still really useful.