-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for cosine_distance #24005
Add docs for cosine_distance #24005
Conversation
Returns the cosine similarity between the sparse vectors `x` and `y`: | ||
|
||
``` | ||
```sql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having this kinda begs the questions if we should add cosine distance for sparse vectors as well .. should be the same 1-similarity from what I know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt @dain ?
da9387c
to
82aa59e
Compare
## Geometric functions | ||
|
||
:::{function} cosine_distance(array(double), array(double)) -> double | ||
Calculates the cosine distance of two double arrays: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calculates the cosine distance of two double arrays: | |
Calculates the cosine distance between two dense vectors: |
Add docs for new cosine_distance function, move related docs, and clean up and docs
Description
See title, but we need to decide how to proceed .. do we want these docs in math.md or array.md? Do we want to link from one to the other? What do we want in terms of arguments .. use x y or the array double.
Additional context and related issues
Follow up to #23964
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.