↓ Skip to main content
  1. Glossary/

Cosine similarity

A score from −1 to 1 that measures how closely two vectors point in the same direction. Vector search uses it to compare a query embedding with document embeddings: a higher score means a closer meaning.

The query “Can I get my money back?” scores 0.82 against a clause on refunds and 0.31 against a clause on delivery times. The search ranks the refund clause first.

Appears in