Suppose we embed features of some dataset in a high-dimensional space. Why the preferred…
- User
Suppose we embed features of some dataset in a high-dimensional space. Why the preferred method of searching for similar data points is their cosine similarity and not, say, distance between them?
Assistant
There are a few key reasons why cosine similarity is generally preferred over distance metrics when searching for similar data points that have been embedded in a high-dimensional space:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.