Definition
Cosine similarity is a metric that measures the similarity between two vectors by calculating the cosine of the angle between them. In AI, it is used to compare text embeddings and find semantically similar documents or sentences. It is the foundation of semantic search systems and RAG pipelines that power business chatbots.
Related terms
EXPLORE