How it works

Three ways to rank the same query.

Every search runs keyword, semantic, and hybrid retrieval side by side — so the difference between matching strings and matching meaning is impossible to miss.

Retrieval modes

One query, three rankings

Each path has a real engine behind it — no hand-waving.

01

Keyword

BM25 · Elasticsearch

Ranks by literal term overlap across title, brand, category and description. Fast, transparent, and the honest strawman every semantic system has to beat.

02

Semantic

dense vector · pgvector

Embeds the query with bge-small and ranks by cosine similarity — so “affordable notebook” finds the budget Chromebook that shares no keywords.

03

Hybrid

reciprocal rank fusion

Fuses both rankings with RRF under a tunable α. It recovers the literal match and the intent match — usually the best relevance of the three.

Worked example

“cheap gaming laptop”, three ways

Keyword nails the literal match but misses the value picks. Semantic reads the intent but drops the exact model. Hybrid keeps both.

KeywordSemanticHybridBEST
Top resultGamer Pro 17Budget ChromebookGamer Pro 17
Reads “cheap”?No — literal terms onlyYes — as budget intentYes
Typical missBudget / value picksThe exact model asked for
Best forExact names & SKUsSynonyms & paraphrasesGeneral shopper queries
The request path

What happens on every search

01

Parse the query

Natural-language price filters are pulled out (“laptop under 300”) before retrieval runs.

02

Run three engines

Keyword, semantic, and hybrid execute in parallel on every search.

03

Fuse & rerank

RRF blends rankings; an optional cross-encoder refines the top candidates.

04

Score & diversify

MMR suppresses near-duplicates; NDCG/Recall/MRR are computed on labeled queries.

Watch the three paths race.

Run any query in the demo and compare keyword, semantic, and hybrid side by side.

Semvex

Semantic product search that ranks by meaning — keyword, dense-vector, and hybrid retrieval compared on a single query.

Product

Engine

Project

© 2026 Semvex — semantic product search.Developed by Archilect Studios