Skip to content

Glossary: NLP with Transformers

Semantic search

Also written: util.semantic_search

Searching by meaning rather than shared words, by embedding the query and the documents and ranking by cosine similarity. It finds the right FAQ for 'Can you send a bag to Honolulu?'.

Where the book teaches it

Related terms

Sentence embeddingCosine similarityRecall@k