|
|
|
|
|
by OutOfHere
651 days ago
|
|
For those who don't want to use a full-blown RAG database, scipy.spatial.distance has a convenient cosine distance function. And for those who don't even want to use SciPy, the formula in the linked post. For anyone new to the topic, note that the monotonic interpretation of cosine distance is opposite to that of cosine similarity. |
|
I've outlined some of the related issues here: https://github.com/ashvardanian/SimSIMD#cosine-similarity-re...