Skip to content

Commit 4cd7c74

Browse files
docs: Add pgvector and Vector Buckets differences (supabase#40893)
Add pgvector differences
1 parent ae4fe1b commit 4cd7c74

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

apps/docs/content/guides/storage/vector/introduction.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ Vector buckets excel at:
4040
- **RAG (Retrieval-Augmented Generation)** - Find relevant context for LLM queries
4141
- **Personalization** - Recommend tailored content based on user embeddings
4242

43+
## Comparison to pgvector
44+
45+
Vector buckets share similarities to pgvector and matches the developer experience of using pgvector as much as possible, but Vector buckets and any [Foreign Data Wrappers (FDW)](/docs/guides/database/extensions/wrappers/overview) they use only support one similarity search algorithm, the `<===>` distance operator.
46+
47+
This makes Vector buckets ideal for:
48+
49+
- Large-scale data storage
50+
- Backend processing workflows
51+
- Applications where speed is less critical
52+
53+
And pgvector is ideal for:
54+
55+
- Fast prototyping and small data volumes
56+
- Applications requiring quick response times
57+
- User-facing features closer to the front end
58+
4359
## How Vector buckets work
4460

4561
1. **Create a bucket** to organize your vector data

apps/docs/content/guides/storage/vector/querying-vectors.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Expect rapid changes, limited features, and possible breaking updates. [Share fe
1111

1212
Vector similarity search finds vectors most similar to a query vector using distance metrics. You can query vectors using the JavaScript SDK or directly from Postgres using SQL.
1313

14+
<Admonition type="tip" title="Comparison to pgvector">
15+
16+
Vector buckets and any [Foreign Data Wrappers (FDW)](/docs/guides/database/extensions/wrappers/overview) they use only support one similarity search algorithm, the `<===>` distance operator.
17+
18+
</Admonition>
19+
1420
## Basic similarity search
1521

1622
<Tabs

0 commit comments

Comments
 (0)