AbsoluteJS

@absolutejs/rag-sqlite

@absolutejs/rag-sqlitev0.0.12betaAI

SQLite vector-store adapter for @absolutejs/rag with optional native vec0 acceleration

#Installation

BASH
bun add @absolutejs/rag-sqlite

#Capabilities

Overview

SQLite vector-store adapter for @absolutejs/rag, with optional native sqlite-vec (vec0) acceleration. Falls back to the owned JSON/sqlite-table path when no native platform binary is available.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/rag-sqlite through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/rag-sqlite version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/rag-sqlite example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Usage

Partial snippet

Working example for Usage.

TS
import { createSQLiteRAG, ragPlugin } from '@absolutejs/rag-sqlite';

const rag = createSQLiteRAG({
	storeOptions: {
		path: './rag.sqlite',
		native: { mode: 'vec0' }
	}
});

app.use(ragPlugin({ path: '/rag', collection: rag.collection }));

// Inspect what happened at runtime:
console.log(rag.getNativeSupport().actionableMessage);

#Public entry points

Supported entry points declared by this package manifest.

Package entry point declared in package.json.

@absolutejs/rag-sqlite@absolutejs/rag-sqlite/manifest@absolutejs/rag-sqlite/manifest.json

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --sourcemap --target=bun --external @absolutejs/rag --external @absolutejs/rag/adapter-kit --external @absolutejs/ai && tsc --project tsconfig.build.json && absolute-manifest emit
bun run formatprettier --write "./**/*.{ts,json,md}"
bun run testbun test
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

21 symbols
ABSOLUTE_SQLITE_RAG_PACKAGE_NAMEvaluePermalinkSource
TS
const ABSOLUTE_SQLITE_RAG_PACKAGE_NAME = "@absolutejs/rag-sqlite";
Exported from @absolutejs/rag-sqlite