
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@ragpipe/plugin-pgvector
Advanced tools
PostgreSQL + pgvector vector store plugin for ragpipe, powered by pg.
pnpm add ragpipe @ragpipe/plugin-pgvector
import { defineConfig } from "ragpipe";
import { pgVectorStore } from "@ragpipe/plugin-pgvector";
export default defineConfig({
// ... embedding, generation
vectorStore: pgVectorStore({
connectionString: process.env.DATABASE_URL ?? "",
tableName: "documents", // default
schema: "public", // default
ssl: false, // default
}),
});
pgVectorStore(options)Returns a VectorStorePlugin backed by a direct PostgreSQL connection.
| Option | Type | Default | Description |
|---|---|---|---|
connectionString | string | — | PostgreSQL connection string (required) |
tableName | string | "documents" | Table to store documents |
schema | string | "public" | PostgreSQL schema for the table |
ssl | boolean | false | Enables SSL with rejectUnauthorized: false |
| Method | Description |
|---|---|
search(vector, topK) | Runs cosine similarity search with pgvector <=> |
upsert(source, content, vector) | Inserts with ON CONFLICT (source, content_hash) dedup |
clear() | Truncates the configured table |
disconnect() | Closes the underlying PostgreSQL pool |
isReady() | Checks whether the configured table already exists |
setup(dimensions, options?) | Creates or recreates the table and HNSW index |
setup() creates the schema automatically:
CREATE EXTENSION IF NOT EXISTS vectorCREATE TABLE IF NOT EXISTS {schema}.{table}CREATE INDEX IF NOT EXISTS {table}_vector_idx USING hnswYour database still needs the pgvector extension package installed at the server level. If the extension is unavailable or permissions are missing, setup() will fail with guidance in the error message.
pgVectorStore({
connectionString: "postgresql://ragpipe:ragpipe@localhost:5432/ragpipe",
});
pgVectorStore({
connectionString: process.env.DATABASE_URL ?? "",
ssl: true,
});
pgVectorStore({
connectionString: process.env.DATABASE_URL ?? "",
schema: "rag",
tableName: "knowledge_base",
});
schema and tableName are validated before being interpolated into SQL.MIT
FAQs
PostgreSQL pgvector vector store plugin for ragpipe
We found that @ragpipe/plugin-pgvector 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.