Jargonautica
Retrieval and Knowledge

Semantic Search

Search by meaning rather than by matching words. A query for ‘car insurance’ finds a document about ‘vehicle cover’ even though they share no vocabulary. It is what embeddings were made for, and it is a useful capability in its own right, quite apart from feeding a language model.

Technical view

Implemented by embedding queries and documents into the same space and ranking by cosine similarity. Its weakness mirrors its strength: it can miss exact identifiers, product codes and proper nouns that keyword search handles trivially, which is why production systems nearly always run hybrid search. Domain adaptation of the embedding model, or fine-tuning on in-domain query and document pairs, gives large gains on specialist vocabulary.


Part of AI Terminology Index, section: Retrieval and Knowledge.

How it connects

Semantic Search links to 18 other terms, and the 12 closest are drawn here. The faint lines are links between those terms. See it in the full graph.

EmbeddingsEmbeddingsVector DatabaseVector DatabaseRetrieval Augmented GenerationRetrieval Augmented…Hybrid SearchHybrid SearchRerankingRerankingApproximate Nearest Neighbour SearchApproximate Nearest…BM25 and Sparse RetrievalBM25 and Sparse Ret…Information RetrievalInformation Retriev…Inverted IndexInverted IndexMulti-vector RetrievalMulti-vector Retrie…Dot Product and Cosine SimilarityDot Product and Cos…Knowledge GraphKnowledge GraphSemantic Search