One signed binary. Every feature compiled in. Free to run. Install Crowkis →
← back to the Roost
referenceJune 9, 2026· 3 min read

How to use CDOC: a RAG store in the CLI

CDOC adds documents with auto-chunking and metadata, then searches them with filters and optional reranking — no separate vector database.

CDOC is retrieval inside the cache. Add a document with chunking, then search by meaning with field-level filters and a rerank pass.

crowkis cli
> CDOC ADD policy-2026 "<long policy text>" CHUNK 512 OVERLAP 64 META team=legal
OK
> CDOC SEARCH "how long is the refund window?" K 3 FILTER team=legal RERANK
1) "policy-2026#2  0.88  Refunds are accepted within 30 days ..."
2) "policy-2026#5  0.71  ..."

Filters narrow the search before it runs; RERANK uses the bundled cross-encoder to sharpen the order.