This documentation is sourced from a third-party project and is not maintained by pgEdge.
Hybrid Search
Use together with Postgres full-text search for hybrid search.
SELECT id, content FROM items, plainto_tsquery('hello search') query
WHERE textsearch @@ query ORDER BY ts_rank_cd(textsearch, query) DESC LIMIT 5;
You can use Reciprocal Rank Fusion or a cross-encoder to combine results.