Find the exact id and the paraphrase in one query.
Keyword search misses the paraphrase and vector search misses the exact id. Infino runs both over the same rows and fuses the rankings.
Hybrid search gets more answers right.
Accuracy by retrieval mode · BEIR
- Hybrid + reranking
- Hybrid
- Vector
- Keyword
What hybrid search costs
Hybrid search cost · 5B documents · 10M queries a month
- Infino
- OpenSearch
- Qdrant
- Elasticsearch
Retrieval results are returned as a table
-- BM25 + vector, fused inside the engine SELECT _id, subject, score FROM hybrid_search( 'tickets', -- one table, one snapshot 'body', 'disk full on ingest', -- keyword side (OR) 'embedding', :q, 200 -- vector side, 200 deep each ) WHERE priority IN ('p0', 'p1') ORDER BY score DESC LIMIT 20;
- The keyword index and the embeddings sit inside the same Parquet files.
- Both searches read one version of the table.
The same call feeds a GROUP BY.
-- Which services retried a failed request, by team? SELECT team, count(DISTINCT service) AS services -- which services FROM hybrid_search('events', 'message', 'retry failed request', 'embedding', :q, 5000) -- BM25 + vector, fused GROUP BY team -- by team ORDER BY services DESC;
How two lists become one ranking
- BM25 returns a score and vector search a distance, so the engine ranks by each row’s position in its list.
- A row scores
1 / (60 + position)for each list it appears in. - There is no weight to tune.
Go deeper on hybrid search
Hybrid search questions
Why run both BM25 and vector?
They fail in opposite directions. BM25 finds the token “retry” and misses “backoff.” Vector finds the same idea said differently and misses an exact id. hybrid_search runs both over one snapshot and fuses the rankings.
What is the score column on hybrid_search?
The column contains the reciprocal-rank-fusion score, where higher is better. It is a separate ranking signal from the BM25 score and vector distance. ORDER BY score DESC lists the best blended matches first.
Do I tune a weight between BM25 and vector?
Fusion uses rank positions with a fixed constant of 60. The function exposes a single deterministic blend instead of an alpha or score-normalization step. A quality reranker can provide a second ranking over the returned rows.
Can I see the BM25 score and the vector distance too?
hybrid_search emits the fused score. Run bm25_search and vector_search as separate relations and join them on _id to inspect each raw signal and the disagreement set.
What is a table-valued search function?
hybrid_search (and bm25_search, vector_search) are relations. They take a table name, return that table’s columns plus a score, and belong in FROM. COUNT, WHERE, JOIN, and GROUP BY are ordinary SQL on top. k controls retrieval depth; LIMIT controls the rows displayed.
Where do the embeddings come from?
Infino can embed text on ingest using the model selected for the table. You can also send vectors from your own model. Embed the query with the same model you indexed. Keyword search and SQL run directly on text and columns.
Does hybrid search replace a reranker?
Infino retrieves and fuses candidates. A cross-encoder or other quality model can rerank the returned rows, while query rewrite, chunking, and labeled evaluation remain application concerns.
Give your agent hybrid search over your own data.
or run it yourself: pip install infino · Apache-2.0 · quickstart →