-
Notifications
You must be signed in to change notification settings - Fork 2.1k
VectorIndex Policy: Adds Support for QuantizerType in IndexingPolicy #47566
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
Open
allenkim0129
wants to merge
12
commits into
Azure:main
Choose a base branch
from
allenkim0129:users/allekim/vector_quantizertype
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e2b9711
Adds Support for QuantizerType in IndexingPolicy
allenkim0129 7d389e9
Updated syntax of class initializations
allenkim0129 2ad5623
Clean up test syntax to be more readable
allenkim0129 29bad2a
Updated CHANGELOG.md
allenkim0129 798c1b6
Merge branch 'main' into users/allekim/vector_quantizertype
allenkim0129 61ec83a
Added `QUANTIZER_TYPE` TO `IndexProperty`
allenkim0129 d237151
Addressed comments
allenkim0129 18ca430
Merge branch 'main' into users/allekim/vector_quantizertype
allenkim0129 201916f
Fix compile error with the usage of `List.of`
allenkim0129 08ee4a4
Revert return type change to avoid linting failure
allenkim0129 ae58024
Merge branch 'main' into users/allekim/vector_quantizertype
allenkim0129 782d22a
Merge branch 'main' into users/allekim/vector_quantizertype
allenkim0129 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
35 changes: 35 additions & 0 deletions
35
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/QuantizerType.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.cosmos.models; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonValue; | ||
|
|
||
| /** | ||
| * Defines quantizer types for vector index specifications in the Azure Cosmos DB service. | ||
| */ | ||
| public enum QuantizerType { | ||
| /** | ||
| * Represents a product quantizer type. | ||
| */ | ||
| PRODUCT("product"), | ||
|
|
||
| /** | ||
| * Represents a spherical quantizer type. | ||
| */ | ||
| SPHERICAL("spherical"); | ||
|
|
||
|
|
||
| QuantizerType(String overWireValue) { | ||
| this.overWireValue = overWireValue; | ||
| } | ||
|
|
||
| private final String overWireValue; | ||
|
|
||
| @JsonValue | ||
| @Override | ||
| public String toString() { | ||
| return this.overWireValue; | ||
| } | ||
allenkim0129 marked this conversation as resolved.
Show resolved
Hide resolved
allenkim0129 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.