Simon Verwaal. Glossary

Cosine similarity

Similarity based on vector direction

A measure of how closely the directions of two vectors align.

Cosine similarity compares vector directions and is often used to measure similarity between embeddings. It can help a system find text related to a question even when the wording differs. The score is not a percentage of truth, nor does it guarantee that a passage contains the answer. An article about installing a thermostat may look highly similar to a question about resetting one. Evaluate results using representative questions and choose any thresholds for your particular model and dataset. A high similarity score still needs to lead to useful information.

Related terms

C ยท Back to all terms