Added dist functions from usearch#46
Merged
Ngalstyan4 merged 10 commits intolanterndata:mainfrom Aug 18, 2023
Merged
Conversation
Ngalstyan4
reviewed
Aug 14, 2023
Ngalstyan4
reviewed
Aug 14, 2023
Ngalstyan4
reviewed
Aug 14, 2023
f195bd5 to
6fc2dd2
Compare
Ngalstyan4
reviewed
Aug 17, 2023
Contributor
Ngalstyan4
left a comment
There was a problem hiding this comment.
Did another pass over this.
|
|
||
| CREATE TABLE small_world_l2_vec ( | ||
| id varchar(3), | ||
| vector vector(3) |
Contributor
There was a problem hiding this comment.
Would be good to vactor this into a separate file (e.g. pgvector_compat.sql)
We will need to then move all the other tests that require pgvector into this file so we could make pgvector dependency optional for running tests as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added new dist functions
cos_distandhamming_distwhich will use usearch implementations you can refer to this PR for more information.l2sq_distfunction now will also use usearch implementation.TODO
Issue
closes #34