mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +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
|
## 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
|
Insert vectors
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
|
|||||||
Reference in New Issue
Block a user