-
Notifications
You must be signed in to change notification settings - Fork 525
VectorDataType: Adds Support for Float16 Data Type
#5368
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
VectorDataType: Adds Support for Float16 Data Type
#5368
Conversation
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.
Pull Request Overview
This PR adds support for the Float16 data type to the VectorDataType enum in the Azure Cosmos DB .NET SDK. The backend now supports Float16 vectors, so this change enables the SDK to utilize this new data type.
- Adds
Float16enum value toVectorDataTypewith proper serialization attribute - Updates test data to include Float16 vector embedding examples
- Updates API contract tests to verify the new enum member
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| VectorDataType.cs | Adds Float16 enum value with EnumMember attribute |
| SettingsContractTests.cs | Updates test data and assertions to include Float16 vector embedding |
| DotNetSDKAPI.json | Updates API contract to include the new Float16 enum member |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Pull Request Template
Description
This PR adds the support for
Float16inVectorDataType. The Float16 value for the vector data type is now supported from the backend, Therefore, the goal of this PR is to add the support back in theVectorDataType.Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #5367