Skip to content

Glossary: Embeddings and Vector Search

cosine distance

One minus the cosine similarity, so smaller means closer. Chroma and pgvector report it, which is why a distance of 0.549 means a similarity of 0.451.

Where the book teaches it

Related terms

cosine similaritymetric