FEATURE

Hybrid Search — Vector + Semantic + Keyword + RRF

Knovya's hybrid search combines BM25 full-text, pgvector semantic search, Reciprocal Rank Fusion, and fuzzy fallback. Find what you forgot the words for.

Get started

Knovya's hybrid search combines BM25 full-text, pgvector semantic search, Reciprocal Rank Fusion, and fuzzy fallback. Find what you forgot the words for.

Frequently asked

What is hybrid search?

Hybrid search is a retrieval method that runs both keyword search (BM25 or similar) and semantic vector search at the same time, then merges the two ranked lists into one. Pure keyword search misses synonyms and conceptual matches; pure vector search misses exact names, codes, and rare terms. Hybrid keeps both. Knovya's implementation goes a step further by adding a third engine — Reciprocal Rank Fusion as the merge algorithm — and a fourth — a fuzzy fallback for typos.

Hybrid search vs vector search — which is better?

Vector search alone is good when your queries are conceptual and your corpus has consistent semantic vocabulary. It tends to lose exact identifiers — SKUs, error codes, proper names, version numbers — because they get blurred in embedding space. Hybrid keeps vector's conceptual reach but adds keyword precision back. For mixed personal notes — names, jargon, half-remembered phrases — hybrid wins by roughly 20-30% recall in most published benchmarks.

What is Reciprocal Rank Fusion (RRF)?

RRF is a way to merge multiple ranked result lists into one without needing the lists to share a score scale. Cormack, Clarke and Büttcher introduced it at SIGIR 2009. The formula is plain: each document's final score is the sum, across rankers, of one over a constant plus its rank in that ranker. The constant softens the contribution of lower-ranked documents without zeroing them out. Knovya uses RRF to merge the BM25 list with the vector list, with a calibrated constant tuned for personal-scale workspaces.

Does Knovya support filtering and metadata search?

Yes — by folder, tag, type (plan, decision, journal, framework), status, NoteRank score, and arbitrary metadata. You can also run filter-only searches with no query at all (useful for finding all active plans in a folder, for example). Filters compose with hybrid retrieval, narrowing the candidate set before fusion.

Does hybrid search work in different languages?

Yes. Knovya detects language per note (English, Cyrillic, CJK, others) and routes each query through the appropriate full-text configuration. Vector embeddings cross language boundaries naturally, so a Turkish note can surface for an English query if the meaning matches. Title boost and snippet highlighting work in all supported languages.

Is hybrid search slower than keyword search?

Marginally. Running two engines in parallel adds a small amount of latency over keyword-only — public benchmarks from production hybrid systems put it around six milliseconds. The recall improvement is usually worth it. Knovya caches recent queries for sixty seconds and uses an HNSW index for vector lookups, so repeat searches return effectively instantly.

What happens if I make a typo?

When BM25 returns zero results, the fuzzy fallback engine takes over — it uses trigram similarity (the same technique that makes 'fasion' match 'fashion' in good search bars) to recover the intent. Vector search may also catch typos in some cases because embeddings are tolerant of spelling variation. The graph still finds what you meant — typos are not a wall.

Start building your second brain