Skip to content

Glossary: NLP with Transformers

Cosine similarity

Also written: similarity

A measure of how closely two vectors point the same way: 1 for the same direction, 0 for unrelated. Semantic search ranks FAQ entries by it.

Where the book teaches it

Related terms

Sentence embeddingSemantic search