Semantic Similarity
A measure of how close in meaning two texts are. Unlike character-by-character comparison, it takes into account the meaning.
How It Is Measured
Texts are converted into embeddings and compared using cosine similarity. The closer the vectors, the closer the meaning.
Where It Is Used
- semantic search;
- deduplication of similar texts;
- evaluation of answer relevancy in RAG.