diff --git a/CHANGELOG.md b/CHANGELOG.md index d72c7df614..fe90c27729 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Please mark all change in change log and use the issue from GitHub ## Feature - \#1655 GPU index support delete vectors +- \#1825 Add annoy index type in C++ sdk ## Improvement diff --git a/sdk/examples/utils/Utils.cpp b/sdk/examples/utils/Utils.cpp index 3da618aa03..ad698609fa 100644 --- a/sdk/examples/utils/Utils.cpp +++ b/sdk/examples/utils/Utils.cpp @@ -94,6 +94,8 @@ Utils::IndexTypeName(const milvus::IndexType& index_type) { case milvus::IndexType::IVFPQ:return "IVFPQ"; case milvus::IndexType::SPTAGKDT:return "SPTAGKDT"; case milvus::IndexType::SPTAGBKT:return "SPTAGBKT"; + case milvus::IndexType::HNSW:return "HNSW"; + case milvus::IndexType::ANNOY:return "ANNOY"; default:return "Unknown index type"; } } diff --git a/sdk/include/MilvusApi.h b/sdk/include/MilvusApi.h index 67f3771623..9bc585c54e 100644 --- a/sdk/include/MilvusApi.h +++ b/sdk/include/MilvusApi.h @@ -35,6 +35,7 @@ enum class IndexType { SPTAGKDT = 7, SPTAGBKT = 8, HNSW = 11, + ANNOY = 12, }; enum class MetricType {