Skip to content

Commit b16e990

Browse files
committed
2 parents a7fcb26 + b897268 commit b16e990

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

API.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ SELECT vector_init('documents', 'embedding', 'dimension=384,type=FLOAT32,distanc
9292

9393
## `vector_quantize(table, column, options)`
9494

95-
**Returns:** `NULL`
95+
**Returns:** `INTEGER`
9696

9797
**Description:**
98+
Returns the total number of succesfully quantized rows.
99+
98100
Performs quantization on the specified table and column. This precomputes internal data structures to support fast approximate nearest neighbor (ANN) search.
99101
Read more about quantization [here](https://github.com/sqliteai/sqlite-vector/blob/main/QUANTIZATION.md).
100102

@@ -150,7 +152,7 @@ SELECT vector_quantize_preload('documents', 'embedding');
150152

151153
---
152154

153-
## `vector_cleanup(table, column)`
155+
## `vector_quantize_cleanup(table, column)`
154156

155157
**Returns:** `NULL`
156158

@@ -163,7 +165,7 @@ This function should only be called when quantization is no longer needed. If th
163165
**Example:**
164166

165167
```sql
166-
SELECT vector_cleanup('documents', 'embedding');
168+
SELECT vector_quantize_cleanup('documents', 'embedding');
167169
```
168170

169171
---

0 commit comments

Comments
 (0)