@@ -77,7 +77,7 @@ import io.endee.client.types.SpaceType;
7777
7878CreateIndexOptions options = CreateIndexOptions . builder(" my_vectors" , 384 )
7979 .spaceType(SpaceType . COSINE )
80- .precision(Precision . INT8 )
80+ .precision(Precision . INT16 )
8181 .build();
8282
8383client. createIndex(options);
@@ -92,7 +92,7 @@ client.createIndex(options);
9292| ` spaceType ` | Distance metric - ` COSINE ` , ` L2 ` , or ` IP ` (inner product) | ` COSINE ` |
9393| ` m ` | Graph connectivity - higher values increase recall but use more memory | 16 |
9494| ` efCon ` | Construction-time parameter - higher values improve index quality | 128 |
95- | ` precision ` | Quantization precision | ` INT8 ` |
95+ | ` precision ` | Quantization precision | ` INT16 ` |
9696
9797### Create a Hybrid Index
9898
@@ -102,7 +102,7 @@ Hybrid indexes combine dense vector search with sparse vector search. Add the `s
102102CreateIndexOptions options = CreateIndexOptions . builder(" hybrid_index" , 384 )
103103 .sparseDimension(30000 ) // Sparse vector dimension (vocabulary size)
104104 .spaceType(SpaceType . COSINE )
105- .precision(Precision . INT8 )
105+ .precision(Precision . INT16 )
106106 .build();
107107
108108client. createIndex(options);
@@ -365,7 +365,7 @@ IndexDescription info = index.describe();
365365System . out. println(info);
366366// IndexDescription{name='my_index', spaceType=COSINE, dimension=384,
367367// sparseDimension=0, isHybrid=false, count=1000,
368- // precision=INT8 , m=16}
368+ // precision=INT16 , m=16}
369369```
370370
371371### Check if Index is Hybrid
@@ -382,8 +382,8 @@ Endee supports different quantization precision levels:
382382import io.endee.client.types.Precision ;
383383
384384Precision . BINARY // Binary quantization (1-bit) - smallest storage, fastest search
385- Precision . INT8 // 8-bit integer quantization (default) - balanced performance
386- Precision . INT16 // 16-bit integer quantization - higher precision
385+ Precision . INT8 // 8-bit integer quantization - balanced performance
386+ Precision . INT16 // 16-bit integer quantization (default) - higher precision
387387Precision . FLOAT16 // 16-bit floating point - good balance
388388Precision . FLOAT32 // 32-bit floating point - highest precision
389389```
@@ -460,7 +460,7 @@ public class EndeeExample {
460460 // Create a dense index
461461 CreateIndexOptions createOptions = CreateIndexOptions . builder(" documents" , 384 )
462462 .spaceType(SpaceType . COSINE )
463- .precision(Precision . INT8 )
463+ .precision(Precision . INT16 )
464464 .build();
465465
466466 client. createIndex(createOptions);
0 commit comments