Skip to content
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

Default vector search function name to cosine. #485

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Conversation

maheshrajamani
Copy link
Contributor

@maheshrajamani maheshrajamani commented Jul 31, 2023

What this PR does:
Fixed to use default vector search function name to cosine.
Which issue(s) this PR fixes:
Fixes #483

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@maheshrajamani maheshrajamani requested a review from a team as a code owner July 31, 2023 14:39
@maheshrajamani maheshrajamani self-assigned this Jul 31, 2023
command.options().vector().function());
command.options().vector().function() == null
? "cosine"
: command.options().vector().function());
Copy link
Contributor

Choose a reason for hiding this comment

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

This could alternatively be done in CreatoCollectionCommand.Option record Constructor I think, converting null into "cosine" I think.

Copy link
Contributor

@tatu-at-datastax tatu-at-datastax left a comment

Choose a reason for hiding this comment

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

LGTM

@maheshrajamani maheshrajamani merged commit b1511ca into main Jul 31, 2023
@maheshrajamani maheshrajamani deleted the fix-issue-483 branch July 31, 2023 21:29
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot createCollection() with vector option without sending similarity function
3 participants