Skip to content

Conversation

@dain
Copy link
Member

@dain dain commented Oct 30, 2024

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## General
* Add `cosine_similarity(array(double), array(double))`. ({issue}`issuenumber`)

@dain dain requested a review from martint October 30, 2024 00:57
@cla-bot cla-bot bot added the cla-signed label Oct 30, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd do it the other way around. Implement this method using the logic in cosineDistance (except for the bit at the end), and make cosineDistance = 1 - cosineSimilarity.

@dain dain force-pushed the vector-cosine-similarity branch from b8060bc to 2b3552d Compare October 30, 2024 21:38
@dain dain merged commit 167adf2 into trinodb:master Oct 31, 2024
91 of 92 checks passed
@dain dain deleted the vector-cosine-similarity branch October 31, 2024 15:42
@github-actions github-actions bot added this to the 465 milestone Oct 31, 2024
@ebyhr
Copy link
Member

ebyhr commented Nov 1, 2024

Why is this PR merged without tests?

@mosabua
Copy link
Member

mosabua commented Nov 1, 2024

Is this a breaking change since the older function is renamed? Also .. don't we need to update docs?

@martint
Copy link
Member

martint commented Nov 1, 2024

No, it’s a new function.

@mosabua
Copy link
Member

mosabua commented Nov 1, 2024

Yeah .. sorry ... I misread the diff .. I will send a PR for the docs addition.

@mosabua
Copy link
Member

mosabua commented Nov 1, 2024

Hm.. got questions in the docs PR..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants