You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: paradedb-demo/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Exercises:
13
13
-`CREATE EXTENSION pg_search` / `vector` via the docker init scripts (`init/*.sql`).
14
14
- Automatic `CREATE INDEX ... USING bm25 (...) WITH (key_field='...')` via upstream's index-type registry. The contract uses `type: 'bm25'` so the migration also runs on released servers (<= 0.24.3); on pg_search 0.25.0+ (unreleased) `type: 'paradedb'` emits `USING paradedb`, the primary access method name. The gated test in `test/bm25.integration.test.ts` exercises the `paradedb` AM when the server registers it.
15
15
16
-
The index covers the text columns only: released pg_search builds reject vector columns in ParadeDB indexes (requires pg_search 0.25.0+, unreleased; paradedb/paradedb#5685), so vector Top-K runs unaccelerated here. The gated integration test in `test/vector.integration.test.ts` probes which access method carries the vector opclasses, exercises the vector-in-index DDL (via `renderBm25IndexDdl`) against it, and skips with a clear reason on released builds.
16
+
The index covers the text columns only: released pg_search builds reject vector columns in ParadeDB indexes (requires pg_search 0.25.0+, unreleased; paradedb/paradedb#5685), so vector Top-K runs unaccelerated here. The gated integration test in `test/vector.integration.test.ts` probes which access method carries the vector opclasses, exercises the vector-in-index DDL (via `renderParadeDbIndexDdl`) against it, and skips with a clear reason on released builds.
Copy file name to clipboardExpand all lines: paradedb/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ ParadeDB full-text and vector search extension pack for Prisma Next.
4
4
5
5
## Overview
6
6
7
-
This extension pack registers `'paradedb'` and `'bm25'` index types with the SQL family's index-type registry, so contracts can author BM25 full-text search indexes via the standard `constraints.index(...)` surface and the Postgres adapter emits `CREATE INDEX ... USING paradedb WITH (...)` (or `USING bm25`) DDL. `paradedb` is the primary access method name on pg_search 0.25.0+ (unreleased); `bm25` is a permanent backwards-compatible alias and the only name on released servers (<= 0.24.3).
7
+
This extension pack registers `'paradedb'` and `'bm25'` index types with the SQL family's index-type registry, so contracts can author BM25 full-text search indexes via the standard `constraints.index(...)` surface and the Postgres adapter emits `CREATE INDEX ... USING paradedb WITH (...)` (or `USING bm25`) DDL. `paradedb` is the primary access method name on pg_search 0.25.0+ (unreleased); `bm25` is a permanent backwards-compatible alias and the only name on released servers (<= 0.24.3). The DDL helper API is likewise also available under bm25 names (`renderBm25IndexDdl`, `Bm25IndexDdlOptions`, `Bm25VectorIndexColumn`).
8
8
9
9
The v1 surface covers the `key_field` storage parameter only. Per-field tokenizer and column configuration is deferred to expression-index support.
10
10
@@ -15,7 +15,7 @@ It also provides native pgvector `vector(n)` column support (no pgvector ORM lib
15
15
-**Index registration**: declares `'paradedb'` (primary) and `'bm25'` (alias) entries via `defineIndexTypes()` carrying an arktype validator for the options shape
16
16
-**Vector columns**: `vectorColumn(dimensions)` maps to `vector(n)` DDL; the `paradedb/vector@1` codec serializes `number[]` ⇄ `'[1,2,3]'` in both directions
-**Vector index DDL**: `renderBm25IndexDdl(...)` renders `CREATE INDEX ... USING paradedb` (or `USING bm25` via the `am` option) statements with per-column vector opclasses for raw migrations
18
+
-**Vector index DDL**: `renderParadeDbIndexDdl(...)` renders `CREATE INDEX ... USING paradedb` (or `USING bm25` via the `am` option) statements with per-column vector opclasses for raw migrations
19
19
-**Extension descriptor**: declares the `paradedb/bm25` and `paradedb/vector` capabilities for contract-level feature detection
20
20
-**Pack ref export**: ships a pure `/pack` entrypoint for TypeScript contract authoring
21
21
@@ -97,9 +97,9 @@ The column emits `vector(3)` DDL and reads/writes `number[]` values.
97
97
Vector columns listed in a `constraints.index([...], { type: 'paradedb', ... })` declaration get the AM's default opclass, `vector_l2_ops` (L2). The contract index surface cannot express per-column opclasses yet, so for the cosine or inner-product metric render the DDL for a raw migration:
return`CREATE INDEX ${quoteIdentifier(options.name)} ON ${qualifiedTable} USING ${am} (${columnList}) WITH (key_field = '${escapeLiteral(options.keyField)}')`;
0 commit comments