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
+52-14Lines changed: 52 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,27 +67,38 @@ When `USING MODEL` is omitted, the collection uses the **default embedding model
67
67
68
68
## Quantization — QUANTIZE clause
69
69
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`.
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 four 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 passed to the Qdrant SDK:
91
+
-`4` — 4-bit (default when `BITS` is omitted; server applies its own default)
92
+
-`2` — 2-bit
93
+
-`1.5` — 1.5-bit
94
+
-`1` — 1-bit
95
+
> Compression ratios (8×, 16×, 24×, 32×) and recall characteristics are
96
+
> Qdrant server-side behaviors. QQL maps the `BITS` value to the SDK model and
97
+
> passes it to Qdrant; actual results depend on your Qdrant server version.
98
+
-**`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
99
-**`QUANTIZE`** always appears **after** all other clauses (`HYBRID`, `USING MODEL`, etc.).
90
100
- For `PRODUCT`, the compression ratio is fixed at **4×** in this version.
101
+
- For `TURBO`, Cosine, Dot, and Euclidean distance are supported by the Qdrant server when TurboQuant is enabled.
91
102
- When used with `HYBRID` collections, quantization applies only to the **dense** vector.
92
103
93
104
**Examples:**
@@ -102,6 +113,26 @@ Scalar with explicit calibration and quantized vectors pinned to RAM:
0 commit comments