Skip to content

Commit 9835b2e

Browse files
authored
Update API.md
1 parent 1821cac commit 9835b2e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

API.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ This ensures that each vector can be uniquely identified and efficiently referen
7878
* `FLOATB16`
7979
* `INT8`
8080
* `UINT8`
81+
* `1BIT`
8182
* `distance`: Distance function to use. Options:
8283

8384
* `L2` (default)
8485
* `SQUARED_L2`
8586
* `COSINE`
8687
* `DOT`
8788
* `L1`
89+
* `HAMMING`
8890

8991
**Example:**
9092

@@ -115,11 +117,13 @@ If a quantization already exists for the specified table and column, it is repla
115117
**Available options:**
116118

117119
* `max_memory`: Max memory to use for quantization (default: 30MB)
120+
* `qtype`: Quantization type: `UINT8`, `INT8` or `1BIT`
118121

119122
**Example:**
120123

121124
```sql
122125
SELECT vector_quantize('documents', 'embedding', 'max_memory=50MB');
126+
SELECT vector_quantize('documents', 'embedding', 'qtype=BIT');
123127
```
124128

125129
---
@@ -184,6 +188,8 @@ SELECT vector_quantize_cleanup('documents', 'embedding');
184188

185189
## `vector_as_u8(value)`
186190

191+
## `vector_as_bit(value)`
192+
187193
**Returns:** `BLOB`
188194

189195
**Description:**

0 commit comments

Comments
 (0)