Skip to content

Glossary: LLMs in Production

Cosine similarity

A score from 0 to 1 for how alike two texts are, based on their word counts or embeddings. The semantic cache uses it to decide whether two questions match.

Where the book teaches it

Related terms

Semantic cacheEmbeddings