
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-sqlite-vec
Advanced tools
SQLite local vector store plugin for ragpipe.
This plugin is designed for local-first RAG setups. It stores vectors in a SQLite file and performs similarity scoring in plugin code, so you can run a fully local stack without a separate vector database server.
Pair it with @ragpipe/plugin-ollama for an all-local workflow.
pnpm add ragpipe @ragpipe/plugin-sqlite-vec
import { defineConfig } from "ragpipe";
import { sqliteVectorStore } from "@ragpipe/plugin-sqlite-vec";
export default defineConfig({
// ... embedding, generation
vectorStore: sqliteVectorStore({
path: "./rag.db",
tableName: "documents", // default
metaTableName: "ragpipe_meta", // default
}),
});
import { defineConfig } from "ragpipe";
import {
ollamaEmbedding,
ollamaGeneration,
} from "@ragpipe/plugin-ollama";
import { sqliteVectorStore } from "@ragpipe/plugin-sqlite-vec";
export default defineConfig({
embedding: ollamaEmbedding({
model: "bge-m3",
dimensions: 1024,
}),
vectorStore: sqliteVectorStore({
path: "./rag.db",
}),
generation: ollamaGeneration({
model: "llama3",
}),
});
sqliteVectorStore(options)Returns a VectorStorePlugin backed by a local SQLite database file.
| Option | Type | Default | Description |
|---|---|---|---|
path | string | — | SQLite database file path (required) |
tableName | string | "documents" | Table that stores documents and vectors |
metaTableName | string | "ragpipe_meta" | Table that stores plugin metadata such as embedding dimensions |
| Method | Description |
|---|---|
search(vector, topK) | Loads rows from SQLite, scores cosine similarity in plugin code, and returns top matches |
upsert(source, content, vector) | Inserts or updates by UNIQUE(source, content_hash) |
clear() | Deletes all rows from the configured documents table |
disconnect() | Closes the underlying SQLite connection |
isReady() | Checks whether the documents table and metadata table already exist |
setup(dimensions, options?) | Creates or recreates the local schema and stores the configured embedding dimensions |
setup() creates two tables automatically:
source, content, content_hash, and serialized vectorIf the store already has data and the configured embedding dimensions change, setup() throws a dimension mismatch error unless you pass { force: true }.
Current implementation behavior:
This is intentional for the first local MVP. It keeps setup simple and avoids requiring a separate vector extension or hosted service.
tableName and metaTableName are validated before being interpolated into SQL.better-sqlite3 is used under the hood and is loaded at runtime by the plugin.MIT
FAQs
SQLite local vector store plugin for ragpipe
The npm package @ragpipe/plugin-sqlite-vec receives a total of 3 weekly downloads. As such, @ragpipe/plugin-sqlite-vec popularity was classified as not popular.
We found that @ragpipe/plugin-sqlite-vec 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.