-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support more vector item metadata value types (#972)
In the previous version of the service, we only supported string-valued metadata. In the latest version, we support the following value types: string int double bool list of strings We update the VectorItem and SearchHit interfaces to support metadata of these types (where int and float are both represented as number). We update sendUpsertItemBatch to serialize the metadata appropriately. We distinguish numbers that are integers vs floating point. Similarly we update sendSearch to deserialize the metadata appropriately. We add an extra integration test to ensure each of the metadata value types are stored and retrieved properly.
- Loading branch information
Showing
9 changed files
with
6,598 additions
and
62,270 deletions.
There are no files selected for viewing
34,281 changes: 3,153 additions & 31,128 deletions
34,281
packages/client-sdk-nodejs/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.