Add snippets to disable quantization in guide

This commit is contained in:
KShivendu
2025-08-19 00:48:30 +05:30
parent beb77662d1
commit 3b60554c4f
5 changed files with 21 additions and 0 deletions
@@ -252,6 +252,13 @@ In this case, the quantized vector will be 16 times smaller than the original ve
`always_ram` - whether to keep quantized vectors always cached in RAM or not. By default, quantized vectors are loaded in the same way as the original vectors.
However, in some setups you might want to keep quantized vectors in RAM to speed up the search process. Then set `always_ram` to `true`.
### Disabling Quantization
To disable quantization, you can do the following:
{{< code-snippet path="/documentation/headless/snippets/update-collection/disable-quantization/" >}}
### Searching with Quantization
Once you have configured quantization for a collection, you don't need to do anything extra to search with quantization.
@@ -0,0 +1 @@
This code snippet demonstrates disabling quantization for a collection.
@@ -0,0 +1,7 @@
```bash
curl -X PATCH http://localhost:6333/collections/{collection_name} \
-H 'Content-Type: application/json' \
--data-raw '{
"quantization_config": "Disabled"
}'
```
@@ -0,0 +1,6 @@
```http
PATCH /collections/{collection_name}
{
"quantization_config": "Disabled"
}
```