mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 10:40:57 +08:00
Updated readme [skip ci]
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user