Skip to main content
Version: v0.8.3

LLM-Wiki

LLM-Wiki turns a knowledge space into a living wiki: an agent reads your documents and auto-generates interlinked Markdown pages (entities, concepts, per-document summaries, a catalog page), a link graph for visual exploring, and keeps everything updated incrementally as new documents arrive.

The wiki is fully consumable: browse it tab-by-tab, query it from any agent via kb_wiki_* tools, and rely on it in normal knowledge chat (wiki chunks get a retrieval boost).

Enabling LLM-Wikiโ€‹

Open the space creation wizard (or an existing space's binding flow) and check LLM-Wiki Index under Index Methods:

Index methods with LLM-Wiki enabled and its config

Optional tuning (defaults are fine):

FieldMeaning
Extraction granularityFocused (fewer, high-signal pages) / Standard (recommended) / Exhaustive (most pages)
Generation modelDefaults to the first available model
Max new pages per ingestCost ceiling per document batch (default 8)
Content instructionsFree-form guidance, e.g. "organize for onboarding; prefer tables"

Generating the wikiโ€‹

Documents are the trigger. Any of these starts a debounced (30s) generation run โ€” no manual click needed:

  • Binding an external source (first sync immediately, then per schedule)
  • Uploading / re-syncing a file through File View

For a wholesale rebuild (e.g. after changing wiki settings) open the space โ†’ Wiki tab โ†’ Generate / Rebuild:

Wiki tab with catalog tree

Browsing the wikiโ€‹

The Wiki tab shows the space's wiki:

  • Catalog tree โ€” folders two levels deep, page rows carry their type (ๆฆ‚ๅฟต/ๅฎžไฝ“/ๆ‘˜่ฆโ€ฆ) and version pill; use the search box to find pages directly.
  • Reader โ€” every page renders with its aliaseๆจกๅž‹s, source documents and backlinks; [[links]] inside the text navigate between pages.

Reader on a concept page

  • Wiki Graph tab โ€” the link graph between pages; click a node to preview, double-click to re-center the neighborhood.

Wiki graph

Editing and version historyโ€‹

Every page carries its revision history. Agent edits, the generation pipeline and manual edits are all recorded with a provenance label (auto generated / agent edit / manual edit) and can be rolled back to any prior version (a revert itself becomes a new version).

Click Edit for inline editing (optimistic locking โ€” if someone else saved first you get a 409 with reload/overwrite options).

Consuming the wiki from agentsโ€‹

When a knowledge space has LLM-Wiki enabled, agents bound to that space get three read tools automatically (mounted only when the space is wiki-enabled):

ToolPurpose
kb_wiki_indexFolder/page catalog with one-line summaries
kb_wiki_searchSearch pages by keywords
kb_wiki_read_pageRead a page by slug ('index' = catalog)

Space-internal flows (chat on the space detail page / maintainer agents) can also write wiki pages via kb_wiki_write_page / kb_wiki_replace_text โ€” all writes are recorded as agent edits and remain revertible.

In the Data Assistant you will see these tools listed under the knowledge base section once a wiki-enabled space is selected; ask for the space's overall structure and the agent will reach for kb_wiki_index first.

Selecting a wiki-enabled spaceโ€‹

The knowledge base picker in the assistant shows a ๐Ÿ“– Wiki badge on every wiki-enabled space, so you know which bases carry curated wiki knowledge:

Knowledge base picker with Wiki badge

How generation works (short version)โ€‹

  1. Documents are chunked/embedded as usual; each sync enqueues a debounced wiki ingest.
  2. The pipeline extracts page candidates per document, grounds them with chunk citations, merges duplicates, plans a two-level folder structure, then incrementally rewrites each page ("compiler, not writer").
  3. A finalize pass rebuilds the catalog page, repairs dead links, injects cross-links and syncs pages into the retrieval index (boosted 1.3ร— for knowledge chat).

Changes are visible in the catalog tree under their folders; the "ๆ‘˜่ฆ" (Summaries) tab holds per-document summary pages.