Skip to main content
GGenerative AI
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
  1. Reference
  2. Cosine similarity

Glossary

Cosine similarity

A measure of the angle between two vectors, ignoring their length. It is the usual default for text embeddings, provided the index uses the metric the model expects.

Where it is explained

  • Embeddings and similarity searchEmbeddings and vector search

See also

Terms explained in the same lessons.

  • Contrastive training
  • Dot product
  • Embedding model
  • Euclidean distance
  • Semantic search
  • Vector normalization
Previous termCorrective RAG (CRAG)Next termCoT

All terms, A to Z

GGenerative AI

Learn generative AI from the first token to production systems.

  • Privacy
  • Search