Skip to content

Knowledge

Knowledge base

Point the knowledge base at folders and ask questions across them. Answers cite the documents they used; the index stays on this computer.

Add folders

  • Settings → Knowledge & memory → Knowledge base, or the drawer from the sidebar (Ctrl/⌘+Shift+M).
  • Adding a folder grants read-only access to it; remove it the same way.
  • text, Markdown, CSV, JSON, YAML, HTML, code files, PDF (citations include the page), DOCX, ODT, RTF and XLSX are indexed.
  • Hidden folders, node_modules, dist and build are skipped, as are files over 30 MB; .ssh and browser profiles are never read.

Answers with citations

With knowledge-base answers enabled, Router Agents retrieves relevant passages and answers from them in your language. Citations are numbered in the answer and open a preview, the folder or the file itself.

Retrieval uses BM25 keyword search by default, which works well for code and for Chinese; vector search and a rerank service can be added for more.

Keeping the index current

Router Agents checks for changes about 20 seconds after launch and every 30 minutes after that. Update index is in the panel, and Rebuild all starts from scratch.

In the conversation

Both chat and coding agents can search the knowledge base read-only through the kb_search tool. The tool respects the local-only setting for file content.