You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos/README.md
+20-2
Original file line number
Diff line number
Diff line change
@@ -684,7 +684,7 @@ vector_embedding_policy = {
684
684
```
685
685
686
686
Separately, vector indexes have been added to the already existing indexing_policy and only require two fields per index:
687
-
the path to the relevant field to be used, and the type of index from the possible options (flator quantizedFlat).
687
+
the path to the relevant field to be used, and the type of index from the possible options - flat, quantizedFlat, or diskANN.
688
688
A sample indexing policy with vector indexes would look like this:
689
689
```python
690
690
indexing_policy = {
@@ -703,10 +703,28 @@ indexing_policy = {
703
703
],
704
704
"vectorIndexes": [
705
705
{"path": "/vector1", "type": "flat"},
706
-
{"path": "/vector2", "type": "quantizedFlat"}
706
+
{"path": "/vector2", "type": "quantizedFlat"},
707
+
{"path": "/vector3", "type": "diskANN"}
707
708
]
708
709
}
709
710
```
711
+
712
+
For vector index types of diskANN and quantizedFlat, there are additional options available as well. These are:
713
+
714
+
quantizationByteSize - the number of bytes used in product quantization of the vectors. A larger value may result in better recall for vector searches at the expense of latency. This applies to index types diskANN and quantizedFlat. The allowed range is between 1 and the minimum between 512 and the vector dimensions. The default value is 64.
715
+
716
+
indexingSearchListSize - which represents the size of the candidate list of approximate neighbors stored while building the diskANN index as part of the optimization processes. This applies only to index type diskANN. The allowed range is between 25 and 500.
0 commit comments