Not a dependency. Source code you own.
UnRAG
Install RAG as source files, not dependencies.
Two methods. Zero abstraction.
~/your-project
$ bunx unrag init
✓ Created unrag.config.ts
✓ Installed lib/unrag/core/*
✓ Installed lib/unrag/store/drizzle
✓ Installed lib/unrag/embedding/ai
Done. Your RAG module is ready.
The entire API
This is not a simplified example. This is the real thing.
your-app.ts
1import { createUnragEngine } from "@unrag/config";23const engine = createUnragEngine();45// Ingest: chunk → embed → store in Postgres6await engine.ingest({7 sourceId: "docs:readme",8 content: "Your document content here...",9});1011// Retrieve: embed query → similarity search12const result = await engine.retrieve({13 query: "How do I get started?",14 topK: 5,15});1617console.log(result.chunks);
Ready to own your RAG?
One command. A few hundred lines of code. Full control.
$bunx unrag init