Updated readme [skip ci]

This commit is contained in:
Andrew Kane
2023-11-03 16:48:57 -07:00
parent f361bf2704
commit b5416d6f10

View File

@@ -413,7 +413,7 @@ Youll need to use [dimensionality reduction](https://en.wikipedia.org/wiki/Di
#### Can I store vectors with different dimensions in the same column?
You can use the `vector` type (instead of `vector(3)`). However, you can only create indexes on rows with the same number of dimensions (using [partial indexing](https://www.postgresql.org/docs/current/indexes-partial.html) on an [expression](https://www.postgresql.org/docs/current/indexes-expressional.html)).
You can use the `vector` type (instead of `vector(3)`). However, you can only create indexes on rows with the same number of dimensions (using [expression](https://www.postgresql.org/docs/current/indexes-expressional.html) and [partial](https://www.postgresql.org/docs/current/indexes-partial.html) indexing).
```sql
CREATE INDEX ON items USING hnsw ((embedding::vector(3)) vector_l2_ops) WHERE (model_id = 123);