rag-knowledge
Installation
SKILL.md
RAG Knowledge Base ({{ cookiecutter.vector_store }})
The RAG stack lives in backend/app/services/rag/ (ingestion, vectorstore, embeddings, connectors). Retrieval is exposed to the agent as the search_knowledge_base tool, and to operators via the CLI and the dashboard.
CLI (run from backend/)
uv run {{ cookiecutter.project_slug }} cmd rag-ingest ./docs/ --collection docs --recursive # ingest files/folder
uv run {{ cookiecutter.project_slug }} cmd rag-search "your question" --collection docs # semantic search
uv run {{ cookiecutter.project_slug }} cmd rag-collections # list collections
uv run {{ cookiecutter.project_slug }} cmd rag-stats # chunk/vector counts
uv run {{ cookiecutter.project_slug }} cmd rag-drop <collection> --yes # delete a collection
Ingestion = parse → chunk → embed → upsert into {{ cookiecutter.vector_store }}. Re-ingesting the same source updates it (use --no-replace / --sync-mode to control dedupe).
Sync sources (connectors)
Connectors keep a collection in sync with an external source (Google Drive, S3/MinIO) on a schedule, and can be managed per-organization from the dashboard (/orgs/[id]/integrations) or via CLI: