Knowledge and RAG
Manage knowledge sources, search the index, reindex folders, and seed assistant documentation from the CLI.
The CLI exposes two complementary surfaces for retrieval-augmented generation:
knowledge— source lifecycle (list, add, remove, reindex, status) plus workspace search.rag— agent-facing retrieval and ingestion helpers (search,ingest,status).
Both commands call the sidecar. Loader credentials are never passed on the command line — provision secrets with vault put or secrets set first, then reference a location when adding a source.
Prerequisites
Manage sources
List sources
Add a source
| Flag | Description |
|---|---|
--kind | folder, url, s3, notion, drive, or github (default: folder) |
--name | Display name (defaults to the source id) |
--json | Emit the created source as JSON |
Remove a source
Drops the source and its index.
Reindex
Queues a full digest rebuild for one source.
Indexer status
Search
Search the workspace index (alias: query):
The companion rag command exposes the same retrieval path for automation:
Use knowledge when managing sources; use rag when scripting retrieval inside agent tooling.
Seed assistant documentation (operators)
To index the shipped documentation corpus so the in-app assistant can retrieve repo docs (beyond the always-on contract catalog), use the ledgered production seed:
| Flag | Description |
|---|---|
--dry-run | Report planned/missing/stale seed entries without writing |
--apply | Apply missing or stale seeds and update the ledger |
--force | With --apply, re-apply even when checksums already match |
--target | demo (default) or assistant-knowledge |
--vertical | Limit demo seeds to one vertical pack |
--base-dir | Override the packs directory |
Until rebuild completes, fumadocs pages are not in assistant RAG folder search — the contract catalog in the system prompt is always on.
Demo vertical packs
Materialise demo pack fixtures into sidecar stores (development / sales demos):
Set AKOS_DEMO_PACKS=1 in the sidecar environment when demo packs are gated in your deployment.
Related topics
- Knowledge in the app — UI for sources and flow RAG nodes.
- Integration setup — OAuth providers for Notion/Drive/GitHub sources.
- Authentication —
vault putandsecrets setfor loader credentials. - Command reference — full
knowledge/rag/prod seedtables.