News for hackers. Stuff that matters.
Re:An early look at HNSW performance with pgvector by jkatz05 on Thursday August 10, 2023 @06:43PM (#37082654)
Blog author. You can choose to use any distance metrics. One reason cosine similarity is popular (and used) is that for many of these higher dimensional datasets, it gives a better representation of "nearness" across all the data basd on the nature of "angular" distance. But depending on how your data is distributed, something like L2 distance (Euclidean) could make more sense.

There are no comments on this comment yet.