
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
@absolutejs/absolute-rag-postgresql
Advanced tools
PostgreSQL adapter package for AbsoluteJS RAG workflows, with pgvector as the first vector implementation
PostgreSQL adapter package for AbsoluteJS RAG workflows.
This package exists at the PostgreSQL boundary, not the pgvector boundary.
That is deliberate: AbsoluteJS should build around the database/platform layer,
while treating vector extensions like pgvector as replaceable implementation
choices inside the package.
pgvectorpgvector is the first implementation, not the package identity.import { createPostgresRAG, ragPlugin } from "@absolutejs/absolute-rag-postgresql";
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
})
);
createPostgresRAG(...)
createPostgresRAGCollection(...)
createPgvectorStore(...)
createPostgresSchemaPlan(...)
createPostgresMigrationPlan(...)
applyPostgresMigrations(...)
The package now supports either:
connectionString using the bundled postgres driverclientclientFactoryThat keeps it compatible with:
The package should own a default schema layout but allow overrides:
The initial pgvector implementation should store:
The first implementation should assume the vector extension provided by pgvector.
The package should generate explicit SQL for:
CREATE EXTENSION IF NOT EXISTS vectorThe first pgvector implementation should support:
cosinel2inner_productnonehnswivfflatThe design should let users choose exact search first and add ANN indexing intentionally.
absolute-rag-pgvector?Because pgvector is an implementation choice, not the product boundary.
If the PostgreSQL vector story changes later, AbsoluteJS should be able to keep
its public package identity stable.
Implemented now:
RAGVectorStore interfacepostgres driver support for the normal connectionString pathAdvanced override paths remain available through client and clientFactory.
FAQs
PostgreSQL adapter package for AbsoluteJS RAG workflows, with pgvector as the first vector implementation
The npm package @absolutejs/absolute-rag-postgresql receives a total of 20 weekly downloads. As such, @absolutejs/absolute-rag-postgresql popularity was classified as not popular.
We found that @absolutejs/absolute-rag-postgresql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.