Skip to content

Comment on Better RAG Results with Reciprocal Rank Fusion and Hybrid Search

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.