CosineSimilarity needs extra calculation, postgres does cosine distance

Created on 11 March 2025, about 1 month ago

Problem/Motivation

The difference between them are:

Cosine distance and cosine similarity are complementary measures. Cosine similarity measures how similar two vectors are, ranging from -1 (exactly opposite) to 1 (exactly the same). Cosine distance, on the other hand, measures how different two vectors are and is calculated as 1 minus the Cosine Similarity.

Proposed resolution

Make sure that cosine similarity is always calculated correctly and sorted desc by default.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024