Query knowledge base documents

knowdb-local-searchskillsetup L125
kirisame-wang/knowdb
What it does

Query local filesystem knowledge base using grep

Best for

When you have documents chunked in a local db/ and need fast, scoped grep-based search without external APIs.

Inputs
  • · doc_id (8-hex string)
  • · keyword (literal terms joined by |)
  • · optional: -P for regex
Outputs
  • · matching file paths with line numbers
  • · chunk content from _index.md
  • · heading tree navigation
Preconditions
  • · db/ directory exists with _manifest.json
  • · documents ingested into db/
Failure modes
  • · keyword not found returns empty
  • · regex metacharacters undefined behavior
  • · doc_id does not exist returns no results
Trust signals
  • · Step-by-step bash commands documented
  • · manifest → _index.md → grep workflow
  • · chunk ID position encoding explained