Curated, not crawled
pasclaw kb add ~/docs/ registers documents in place into workspace/kb.db. They are never copied. The schema supports markdown, plain text, HTML, and common source-code formats.
// Knowledgebase
The knowledgebase is a curated, local RAG corpus separate from session memory. Operators register documents with pasclaw kb add, and the agent gets two read-only tools — kb_search and kb_get — that auto-register once at least one source exists.
pasclaw kb add ~/docs/ registers documents in place into workspace/kb.db. They are never copied. The schema supports markdown, plain text, HTML, and common source-code formats.
FTS5 BM25 ranking is the default. When the local embedding runtime is provisioned with pasclaw memory provision (sqlite-vec + ONNX Runtime + MiniLM), kb_search auto-upgrades to hybrid keyword + vector with Reciprocal Rank Fusion.
Unlike memory_search, the KB does not re-index on every query. pasclaw kb sync is the explicit refresh, keeping kb_search fast on large corpora.
Pure-Pascal PDF ingest parses text via FlateDecode + /ToUnicode lookup, so pasclaw kb add file.pdf works without Poppler or pdftotext. Scanned PDFs still need external OCR.
From the documentation
Implementation notes drawn from the PasClaw repository documentation.
kb_search and kb_get auto-register once at least one source is added. Indexing happens in workspace/kb.db; documents stay in place.
Common questions
Keep exploring
See how the rest of PasClaw fits together.