Give clear example of using an empty string or vector name

This commit is contained in:
timvisee
2023-11-01 10:51:30 +01:00
parent b6f66e5fab
commit 58982727bc
@@ -277,6 +277,35 @@ index, quantization and disk configurations can now be changed without
recreating a collection. Segments (with index and quantized data) will
automatically be rebuilt in the background to match updated parameters.
To put vector data on disk in a collection that **does not have** named vectors,
use `""` as name:
```http
PATCH /collections/{collection_name}
{
"vectors": {
"": {
"on_disk": true
}
},
}
```
To put vector data on disk in a collection that **does have** named vectors:
```http
PATCH /collections/{collection_name}
{
"vectors": {
"my_vector": {
"on_disk": true
}
},
}
```
In the following example the HNSW index and quantization parameters are updated,
for the whole collection and `my_vector` specifically: