A context-strategy engine
Not just retrieval: rag (top-k chunks), cag (whole corpus,
cache-friendly) and hybrid (whole files picked by retrieval) over
the same index — and eval --compare-modes to choose with numbers.
karajan-rag (kaRAGan) is the context engine of the Karajan family: index a codebase, documents or data with one command and decide — with data, not faith — which context travels to the model. Everything runs through the same guarded path: sensitivity policy plus PII redaction on every output towards an LLM.
npm install -g karajan-ragkarajan-rag index ./my-projectkarajan-rag query "how is billing calculated?" ./my-projectA context-strategy engine
Not just retrieval: rag (top-k chunks), cag (whole corpus,
cache-friendly) and hybrid (whole files picked by retrieval) over
the same index — and eval --compare-modes to choose with numbers.
Sensitivity first
public / internal / confidential per corpus or path prefix.
The policy routes every LLM call; redactPII runs in depth. Audited
end to end — the full third-party review trail is
published verbatim.
Serve it anywhere
MCP server for agents, HTTP API with a self-contained web
playground, or embed it with createRag() — same RagService
underneath, from laptop to Cloud Run.
No silent fallbacks
Missing peer, invalid config or incompatible vector space fail loudly with the exact fix. The local flow is deterministic: no credentials, no network.