Semantic Search

Semantic search retrieves content by meaning rather than exact keyword match, comparing embedding vectors of the query and documents to find conceptually related results. It surfaces relevant material even when wording differs, complementing traditional lexical search that depends on shared terms.

Definition

Semantic Search

Keyword search matches literal terms and misses paraphrases or synonyms. Semantic search instead embeds both query and documents into a shared vector space and ranks by vector similarity, so a query about "car" can retrieve passages about "automobiles." This is powered by embedding models and a vector database for fast nearest-neighbor lookup.

In practice semantic and keyword search are often combined into hybrid retrieval, since each catches cases the other misses. Semantic search is a building block of retrieval-augmented generation, providing the relevant context that grounds a model's answers.

Frequently asked questions

What is Semantic Search?

Semantic search retrieves content by meaning rather than exact keyword match, comparing embedding vectors of the query and documents to find conceptually related results. It surfaces relevant material even when wording differs, complementing traditional lexical search that depends on shared terms.

Sources

Related terms

← Full AI & prompt engineering glossary

Put Semantic Search to work with Prompeteer, the Agentic Contextual AI Platform →