Semantic search

Semantic search retrieves documents by meaning rather than exact words: the query and the documents are converted to embeddings, then ranked by similarity. It finds relevant passages even with no word in common, and usefully complements keyword search.

Example

scores = documents_emb @ requete_emb  # normalized embeddings

Related concepts

The whole glossary