Skip to content

RAG & Search

Cosine similarity

A common way to measure the angle-based similarity between two vectors.

Example

Two text vectors pointing in nearly the same direction receive a high cosine similarity.

Why people use it

Teams use “Cosine similarity” when they need to design search-backed answers that are accurate and traceable.

What you'll hear

“How are we handling Cosine similarity so the assistant gets the right information?”

Related terms