Skip to content
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

Add DiskANN index type #64

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Milvus.Client.Tests/IndexTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public async Task Create_scalar_index()
[InlineData(IndexType.IvfSq8, """{ "nlist": "8" }""")]
[InlineData(IndexType.IvfPq, """{ "nlist": "8", "m": "4" }""")]
[InlineData(IndexType.Hnsw, """{ "efConstruction": "8", "M": "4" }""")]
[InlineData(IndexType.DiskANN, """{ "nlist": "8" }""")]
[InlineData(IndexType.AutoIndex, """{ }""")]
public async Task Index_types_float(IndexType indexType, string extraParamsString)
{
Expand Down
7 changes: 7 additions & 0 deletions Milvus.Client/IndexType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ public enum IndexType
/// </remarks>
Hnsw,

/// <summary>
/// SCANN (Score-aware quantization loss) is similar to <see cref="IvfPq" /> in terms of vector clustering and
/// product quantization. What makes them different lies in the implementation details of product quantization and
/// the use of SIMD (Single-Instruction / Multi-data) for efficient calculation.
/// </summary>
DiskANN,

/// <summary>
/// ANNOY (Approximate Nearest Neighbors Oh Yeah) is an index that uses a hyperplane to divide a high-dimensional
/// space into multiple subspaces, and then stores them in a tree structure.
Expand Down
1 change: 1 addition & 0 deletions Milvus.Client/MilvusCollection.Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static string GetGrpcIndexType(IndexType indexType)
IndexType.IvfPq => "IVF_PQ",
IndexType.IvfSq8 => "IVF_SQ8",
IndexType.Hnsw => "HNSW",
IndexType.DiskANN => "DISKANN",
IndexType.RhnswFlat => "RHNSW_FLAT",
IndexType.RhnswPq => "RHNSW_PQ",
IndexType.RhnswSq => "RHNSW_SQ",
Expand Down
Loading