Przeglądaj źródła

Add IndexType IVF_PQ

Zhiru Zhu 5 lat temu
rodzic
commit
8a9aa839fd

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@
 ### Improvement
 ---
 - \#61 - Add partition
+- \#70 - Add IndexType IVF_PQ
 
 ### Feature
 ---

+ 1 - 0
README.md

@@ -17,6 +17,7 @@ Milvus version compatibility:
 | 0.5.1 | 0.2.2 | 
 | 0.5.2 | 0.2.2 | 
 | 0.5.3 | 0.3.0 | 
+| 0.6.0 | 0.4.0 | 
 
 ### Dependency 
 

+ 5 - 0
src/main/java/io/milvus/client/IndexType.java

@@ -44,6 +44,10 @@ import java.util.Optional;
  * which significantly improves the search performance. To use this index type, make sure both cpu and gpu are added as
  * resources for search usage in the Milvus configuration file.
  *
+ * 6. IVF_PQ - Indexing method built based on product quantization. The input vectors are split into distinct sub-vectors
+ * which are then quantized separately. Vector size can be reduced to 1/8 or 1/16 of the original size.
+ * If you choose this index, note that there is an inevitable trade-off between memory and search accuracy.
+ *
  * </pre>
  */
 public enum IndexType {
@@ -53,6 +57,7 @@ public enum IndexType {
   IVF_SQ8(3),
   NSG(4),
   IVF_SQ8_H(5),
+  IVF_PQ(6),
 
   UNKNOWN(-1);
 

+ 1 - 1
src/main/java/io/milvus/client/MilvusClient.java

@@ -22,7 +22,7 @@ package io.milvus.client;
 /** The Milvus Client Interface */
 public interface MilvusClient {
 
-  String clientVersion = "0.3.0";
+  String clientVersion = "0.4.0";
 
   /** @return the current Milvus client version */
   default String getClientVersion() {