Updated readme [skip ci]

This commit is contained in:
Andrew Kane
2023-04-01 19:32:26 -07:00
parent 91315dfeff
commit 9a7d3532f5

View File

@@ -52,6 +52,18 @@ Note: `<#>` returns the negative inner product since Postgres only supports `ASC
## Storing
Create a new table with a vector column
```sql
CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3));
```
Or add a vector column to an existing table
```sql
ALTER TABLE items ADD COLUMN embedding vector(3);
```
Insert vectors
```sql