VectorDataType: Adds Support for Float16 Data Type#5368
Merged
kirankumarkolli merged 3 commits intomasterfrom Aug 21, 2025
Merged
VectorDataType: Adds Support for Float16 Data Type#5368kirankumarkolli merged 3 commits intomasterfrom
Float16 Data Type#5368kirankumarkolli merged 3 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
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.
Pilchie
previously approved these changes
Aug 20, 2025
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/SettingsContractTests.cs
Show resolved
Hide resolved
Pilchie
approved these changes
Aug 21, 2025
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/SettingsContractTests.cs
Show resolved
Hide resolved
kirankumarkolli
approved these changes
Aug 21, 2025
This was referenced Oct 18, 2025
This was referenced Nov 1, 2025
This was referenced Dec 22, 2025
This was referenced Dec 29, 2025
This was referenced Jan 13, 2026
Closed
This was referenced Feb 3, 2026
[nuget] Bump Microsoft.Azure.Cosmos from 3.52.0 to 3.57.0
felipementel/DEPLOY.CosmosDBForNoSQL-v1#11
Open
This was referenced Feb 13, 2026
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.
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