haiku.rag/haiku_rag_slim/haiku/rag/client
Yiorgis Gozadinos 7be71ebbac
Order cross-database fusion by cosine similarity to the query
Retrieval scores are each database's own rank arithmetic; the databases
in a selection share an embedder, so similarity in that one space is the
signal comparable across databases by construction. Measured product to
product against score ordering: +8.3 to +16.6pp recall@5 across five
cells on two corpora, flat in collection count and corpus shape where
score ordering dips with both, closing roughly 60% of the gap to a
reranker; order-sensitivity residual 0.00pp in every cell. Exact ties
collapse from 51-81% of candidates to under 1%. Full-text-only searches
keep retrieval-score order, having no query vector. The vector column
already travels with every search result, so the similarity costs no
additional transfer; per-chunk embeddings are materialized only for the
federated path that reads them.
2026-09-01 15:26:42 +03:00
..
__init__.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
agents.py Name the databases before the model runs 2026-08-27 17:07:41 +03:00
documents.py Name the database a write wrote to 2026-08-28 08:47:36 +03:00
downloads.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
exceptions.py
processing.py Resolve file:// URIs to paths through url2pathname 2026-08-21 10:22:26 +03:00
rebuild.py Repair an FTS index that covers no rows on write 2026-08-31 18:54:48 +03:00
scope.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
search.py Order cross-database fusion by cosine similarity to the query 2026-09-01 15:26:42 +03:00
session.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
titles.py