VectorIndex Policy: Adds Support for QuantizerType in IndexingPolicy#47566
Merged
allenkim0129 merged 24 commits intoAzure:mainfrom Jan 23, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for quantizer types in vector index specifications for Azure Cosmos DB. The main purpose is to allow users to specify either "product" or "spherical" quantizer types when defining vector indexes in the indexing policy.
Key Changes:
- Introduced a new
QuantizerTypeenum with two values:productandspherical - Added
quantizerTypefield toCosmosVectorIndexSpecwith corresponding getter/setter methods - Updated
CosmosVectorEmbeddingPolicy.setCosmosVectorEmbeddings()to return the policy instance for fluent API consistency - Enhanced tests to validate serialization/deserialization of the new quantizer type field
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
QuantizerType.java |
New enum defining product and spherical quantizer types for vector indexes |
CosmosVectorIndexSpec.java |
Added quantizerType field with getter/setter methods to support the new property |
CosmosVectorEmbeddingPolicy.java |
Changed setCosmosVectorEmbeddings to return policy instance for fluent API pattern |
Constants.java |
Added QUANTIZER_TYPE constant for JSON property serialization |
CHANGELOG.md |
Documented the new QuantizerType feature |
VectorIndexTest.java |
Updated tests to validate quantizer type serialization/deserialization and refactored test code to use fluent builder pattern |
simorenoh
reviewed
Dec 16, 2025
Member
simorenoh
left a comment
There was a problem hiding this comment.
Just one comment, LGTM otherwise
Contributor
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
simorenoh
approved these changes
Dec 19, 2025
simorenoh
approved these changes
Jan 22, 2026
jeet1995
added a commit
to jeet1995/azure-sdk-for-java
that referenced
this pull request
Apr 10, 2026
Add review rules for sdk/cosmos/ that the PR Deep Reviewer agent consumes as mandatory constraints. These encode Cosmos-specific knowledge the agent cannot infer on its own: - @beta annotation gating for preview APIs (addresses PR Azure#47566 miss) - Public enum extensibility scrutiny - Azure SDK Java central guidelines check (new client surface only) - Java 8 baseline compatibility - Suppressions: CHANGELOG per-PR, API contract artifacts, CheckStyle disabling - Domain emphasis: multi-region failover, retry/timeout criticality Modeled after the .NET Cosmos SDK precedent (Azure/azure-cosmos-dotnet-v3). Tested with pragentrules-resolver against PR Azure#47566 changed files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jeet1995
added a commit
to jeet1995/azure-sdk-for-java
that referenced
this pull request
Apr 10, 2026
Add review rules for sdk/cosmos/ that the PR Deep Reviewer agent consumes as mandatory constraints. These encode Cosmos-specific knowledge the agent cannot infer on its own: - @beta annotation gating for preview APIs (addresses PR Azure#47566 miss) - Public enum extensibility scrutiny - Azure SDK Java central guidelines check (new client surface only) - Java 8 baseline compatibility - Suppressions: CHANGELOG per-PR, API contract artifacts, CheckStyle disabling - Domain emphasis: multi-region failover, retry/timeout criticality Modeled after the .NET Cosmos SDK precedent (Azure/azure-cosmos-dotnet-v3). Tested with pragentrules-resolver against PR Azure#47566 changed files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Description
Example:
Type of change
Testing against a live account that has Vector Search for NoSQL API feature enabled:
Check in portal and it has the

quantizerTyupevalue configured asproduct/sphericalAll SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines