Build on the supported package contract
Use @absolutejs/rag-postgres through its supported public entry points.
@absolutejs/rag-postgresv0.0.12betaAIPostgreSQL (pgvector) vector-store adapter for @absolutejs/rag
bun add @absolutejs/rag-postgresPostgreSQL vector-store adapter for @absolutejs/rag, with pgvector as the first vector implementation. Native vector search, server-side filtering, and inspectable schema/migration plans.
Schema and migrations
Inspect the generated SQL or apply migrations explicitly:
Outcomes
Use @absolutejs/rag-postgres through its supported public entry points.
Hardening checklist
Follow in order
Working example for Usage.
import { createPostgresRAG } from '@absolutejs/rag-postgres';
import { ragPlugin } from '@absolutejs/rag';
const rag = createPostgresRAG({
connectionString: process.env.DATABASE_URL,
vector: {
provider: 'pgvector',
dimensions: 1536,
distanceMetric: 'cosine',
autoCreateExtension: true,
autoCreateSchema: true,
autoCreateTables: true,
autoCreateIndex: true,
index: { type: 'hnsw', efSearch: 100, efConstruction: 64, m: 16 }
},
schema: { schemaName: 'absolute_rag', chunkTableName: 'chunks' }
});
app.use(ragPlugin({ path: '/rag', collection: rag.collection }));Inspect the generated SQL or apply migrations explicitly:
const schemaPlan = rag.getSchemaPlan();
const migrationPlan = rag.getMigrationPlan();
await rag.applyMigrations();Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.