How it works
Pure semantic (dense) search misses exact-match queries like product codes, names, or technical terms. Pure keyword (sparse) search misses paraphrases and synonyms. MemWire combines both using Qdrant’s hybrid search with reciprocal rank fusion:- Dense vectors — sentence embeddings from
TextEmbedding(FastEmbed), capturing semantic meaning - Sparse vectors — SPLADE token weights from
SparseTextEmbedding, capturing exact lexical signal
Enabling hybrid search
Hybrid search is on by default. No extra configuration needed:Disabling hybrid search
If you want dense-only retrieval (faster, lower memory):Adding a cross-encoder reranker
For the highest retrieval quality, combine hybrid search with a cross-encoder reranker. The reranker re-scores the top candidates using full query-document attention:search() call.
Models
Swap any model via
MemWireConfig:

