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: docs/collections.md
+48-13Lines changed: 48 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,25 +69,33 @@ When `USING MODEL` is omitted, the collection uses the **default embedding model
69
69
70
70
Quantization reduces the memory footprint of vector collections and speeds up search at the cost of a small, controllable accuracy loss. QQL supports all three Qdrant quantization strategies via an optional `QUANTIZE` clause appended to `CREATE COLLECTION`.
71
71
72
-
**Three strategies:**
72
+
**Four strategies:**
73
73
74
-
| Type | Compression | Accuracy Loss | Best For |
74
+
| Type | Compression | Accuracy | Best For |
75
75
|---|---|---|---|
76
-
|`SCALAR`| 4× (float32 → int8) | < 1% | Most collections — best balance |
-**`QUANTILE <float>`** — (scalar only) calibration quantile for the INT8 conversion; defaults to Qdrant's built-in default (0.99) when omitted.
88
-
-**`ALWAYS RAM`** — keep the **quantized** vectors in RAM at all times, regardless of the collection's `on_disk` setting. Improves search throughput at the cost of higher RAM usage for the compressed index. The original full-precision vectors are stored and managed independently of this flag. Supported by all three quantization types.
89
+
-**`QUANTILE <float>`** — (SCALAR only) calibration quantile for the INT8 conversion; defaults to Qdrant's built-in default (0.99) when omitted.
90
+
-**`BITS <depth>`** — (TURBO only) bit depth controlling compression ratio:
91
+
-`4` — 4-bit, **8×** compression (default when `BITS` is omitted)
92
+
-`2` — 2-bit, **16×** compression
93
+
-`1.5` — 1.5-bit, **24×** compression
94
+
-`1` — 1-bit, **32×** compression (same ratio as BINARY, but better recall)
95
+
-**`ALWAYS RAM`** — keep the **quantized** vectors in RAM at all times, regardless of the collection's `on_disk` setting. Improves search throughput at the cost of higher RAM usage for the compressed index. The original full-precision vectors are stored and managed independently of this flag. Supported by all four quantization types.
89
96
-**`QUANTIZE`** always appears **after** all other clauses (`HYBRID`, `USING MODEL`, etc.).
90
97
- For `PRODUCT`, the compression ratio is fixed at **4×** in this version.
98
+
- For `TURBO`, all distance metrics are supported; `TURBO` fully supports Cosine, Dot, and Euclidean with SIMD-accelerated scoring.
91
99
- When used with `HYBRID` collections, quantization applies only to the **dense** vector.
92
100
93
101
**Examples:**
@@ -102,6 +110,26 @@ Scalar with explicit calibration and quantized vectors pinned to RAM:
0 commit comments