Added support for inline filtering with IVFFlat

This commit is contained in:
Andrew Kane
2024-10-10 17:07:47 -07:00
parent 48fe70c219
commit 116501f062
8 changed files with 262 additions and 1 deletions

View File

@@ -439,6 +439,12 @@ Create an index on one [or more](https://www.postgresql.org/docs/current/indexes
CREATE INDEX ON items (category_id);
```
Or a composite IVFFlat index for approximate search (added in 0.8.0)
```sql
CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops, category_id) WITH (lists = 100);
```
Or a [partial index](https://www.postgresql.org/docs/current/indexes-partial.html) on the vector column for approximate search
```sql