Skip to content

RCBC-489: Support for base64 encoded vector types #146

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

Merged
merged 1 commit into from
May 29, 2024

Conversation

DemetrisChr
Copy link
Contributor

Motivation

In 7.6.2, the server will support base64 encoding of vectors in addition to array type "vector". The new encoding type will be accepted via the parameter "vector_base64" in the vector search query.

Changes

  • Add new overload for the constructor of VectorQuery that accepts a string which represents a base64 encoded sequence of little-endian IEEE 754 floats. This is then forwarded as-is in the vector search query using the"vector_base64" parameter.
  • Core update to f72a089 which includes raising FeatureNotAvailable in SearchIndexManager#upsert_index & ScopeSearchIndexManager#upsert_index when upserting indexes with vector definitions to servers that do not support it.

Results

All vector search tests in FIT pass

@DemetrisChr DemetrisChr requested a review from avsej May 29, 2024 12:17
@DemetrisChr DemetrisChr merged commit e9930cc into couchbase:main May 29, 2024
29 of 40 checks passed
@DemetrisChr DemetrisChr deleted the RCBC-489-base64vector branch May 29, 2024 15:35
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.

2 participants