RAGLite
by @virajsanghvi1
Local-first RAG cache: distill docs into structured Markdown, then index/query with Chroma (vector) + ripgrep (keyword).
clawhub install ragliteπ About This Skill
name: raglite version: 1.0.8 description: "Local-first RAG cache: distill docs into structured Markdown, then index/query with Chroma (vector) + ripgrep (keyword)." metadata: { "openclaw": { "emoji": "π", "requires": { "bins": ["python3", "pip", "rg"] } } }
RAGLite β a local RAG cache (not a memory replacement)
RAGLite is a local-first RAG cache.
It does not replace model memory or chat context. It gives your agent a durable place to store and retrieve information the model wasnβt trained on β especially useful for local/private knowledge (school work, personal notes, medical records, internal runbooks).
Why itβs better than paid RAG / knowledge bases (for many use cases)
Security note (prompt injection)
RAGLite treats extracted document text as untrusted data. If you distill content from third parties (web pages, PDFs, vendor docs), assume it may contain prompt injection attempts.
RAGLiteβs distillation prompts explicitly instruct the model to:
Open source + contributions
Hi β Iβm Viraj. I built RAGLite to make local-first retrieval practical: distill first, index second, query forever.
If you hit an issue or want an enhancement:
Contributors are welcome β PRs encouraged; maintainers handle merges.
Default engine
This skill defaults to OpenClaw π¦ for condensation unless you pass --engine explicitly.
Install
./scripts/install.sh
This creates a skill-local venv at skills/raglite/.venv and installs the PyPI package raglite-chromadb (CLI is still raglite).
Usage
# One-command pipeline: distill β index
./scripts/raglite.sh run /path/to/docs \
--out ./raglite_out \
--collection my-docs \
--chroma-url http://127.0.0.1:8100 \
--skip-existing \
--skip-indexed \
--nodesThen query
./scripts/raglite.sh query "how does X work?" \
--out ./raglite_out \
--collection my-docs \
--chroma-url http://127.0.0.1:8100
Pitch
RAGLite is a local RAG cache for repeated lookups.
When you (or your agent) keep re-searching for the same non-training data β local notes, school work, medical records, internal docs β RAGLite gives you a private, auditable library:
1) Distill to structured Markdown (compression-before-embeddings) 2) Index locally into Chroma 3) Query with hybrid retrieval (vector + keyword)
It doesnβt replace memory/context β itβs the place to store what you need again.
π‘ Examples
# One-command pipeline: distill β index
./scripts/raglite.sh run /path/to/docs \
--out ./raglite_out \
--collection my-docs \
--chroma-url http://127.0.0.1:8100 \
--skip-existing \
--skip-indexed \
--nodesThen query
./scripts/raglite.sh query "how does X work?" \
--out ./raglite_out \
--collection my-docs \
--chroma-url http://127.0.0.1:8100