mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-05 20:20:59 +08:00
Updated readme [skip ci]
This commit is contained in:
@@ -2,13 +2,7 @@
|
|||||||
|
|
||||||
Open-source vector similarity search for Postgres
|
Open-source vector similarity search for Postgres
|
||||||
|
|
||||||
```sql
|
Supports exact and approximate nearest neighbor search for L2 distance, inner product, and cosine distance
|
||||||
CREATE TABLE items (embedding vector(3));
|
|
||||||
CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops);
|
|
||||||
SELECT * FROM items ORDER BY embedding <-> '[1,2,3]' LIMIT 5;
|
|
||||||
```
|
|
||||||
|
|
||||||
Supports L2 distance, inner product, and cosine distance
|
|
||||||
|
|
||||||
[](https://github.com/pgvector/pgvector/actions)
|
[](https://github.com/pgvector/pgvector/actions)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user