Wiki Schema Configuration
This file governs how the LLM builds and maintains your Wiki. Edit it freely.
Wiki Structure
- Entity pages:
entities/(person, organization, project, product, event, place, other) - Concept pages:
concepts/(theory, method, field, phenomenon, standard, term, other) - Source pages:
sources/ - Index:
index.md - Log:
log.md
Entity Page Template
Pages in entities/ MUST follow this structure:
Frontmatter fields:
type: entity— page category (MUST be exactly “entity”)created:— ISO date of first creationsources:— array of source file wiki-linkstags:— entity subtype, MUST be one of: person, organization, project, product, event, place, otheraliases:(optional) — alternative names (translations, abbreviations)reviewed:(optional) — if true, page is human-verified and protected
Sections:
- Basic Information: Type, source file link
- Description: 3-6 sentences with concrete facts, bidirectional links
- Related Entities: Links to related entities using …
- Related Concepts: Links to related concepts using …
- Mentions in Source: Verbatim quotes with source attribution — see Mentions Format below
Concept Page Template
Pages in concepts/ MUST follow this structure:
Frontmatter fields:
type: concept— page category (MUST be exactly “concept”)created:— ISO date of first creationsources:— array of source file wiki-linkstags:— concept subtype, MUST be one of: theory, method, field, phenomenon, standard, term, otheraliases:(optional) — alternative names (translations, abbreviations)reviewed:(optional) — if true, page is human-verified and protected
Sections:
- Definition: Clear, concise definition
- Key Characteristics: Bullet list of defining traits
- Applications: Real-world usage scenarios
- Related Concepts: Links using …
- Related Entities: Links using …
- Mentions in Source: Verbatim quotes with source attribution — see Mentions Format below
Naming Conventions
- Filenames: lowercase-with-hyphens (slugified)
- Entity/concept names: Preserve original language from source, NEVER translate
- Wiki-links: Use full paths Display Name or Display Name
Source Page Template
Pages in sources/ MUST follow this structure:
Frontmatter fields:
type: source— page category (MUST be exactly “source”)tags:— INHERITED from the source note’s frontmatter (do NOT use LLM-derived concept names). The system programmatically populates this from the source file; the LLM must not overwrite it with extracted concept names. This preserves the user’s existing tag vocabulary and prevents pollution from LLM hallucinations.sources:— array of related wiki page links created from this sourcecreated:/updated:— set by the system, see Date Fields below
Sections:
- Summary: Brief description of the source content (2-4 sentences)
- Key Points: Bullet list of main insights
- Mentioned Pages: List of … and … pages created from this source
Date Fields
created:andupdated:are filled by the system programmatically — NEVER LLM-generated- The LLM may produce wrong dates during extraction; the system overrides them post-write to ensure correctness
created:is preserved on merge (older value kept);updated:is always set to the current datesource_note:(optional) — wiki-link to the original source file
Mentions Format
“Mentions in Source” entries use academic-footnote style with source attribution. The format is:
- “Verbatim quote in original language (optional translation)” — display-name
Rules:
- Quotes must be VERBATIM — never paraphrase, summarize, or translate away the original
- The source wiki-link is required so future page merges can trace each quote to its origin
- Multiple quotes from the same source go in the same block, separated by newlines
Content Rules
- mentions_in_source MUST be VERBATIM quotes — never paraphrase or translate
- Summaries/descriptions should use the wiki output language
- Entity/concept names must match the source file’s original language exactly
- All pages must include bidirectional links where relevant
Classification Rules
- type field: entity | concept | source — the page category
- tags field: stores the subtype (entity_type or concept_type)
- Entity subtypes (valid tags for type=entity): person, organization, project, product, event, place, other
- Concept subtypes (valid tags for type=concept): theory, method, field, phenomenon, standard, term, other
- Source types: document, conversation, note
- Rule: tags MUST only contain values from the corresponding subtype list above. A tag not in the valid list will be removed by the system.
Multi-Source Merge Rules
- Sources array: Append new sources, never overwrite
- Aliases: Append alternative names (translations, abbreviations) without overwriting existing ones
- reviewed flag: If true, preserve all existing content, only append genuinely new info
- Contradictions: Preserve both sides with attribution, add to Contradictions section
- NO_NEW_CONTENT: Return this signal if source adds nothing new
Maintenance Policies
- Stale threshold: 90 days without updates
- Contradiction severity: warning, conflict, error
- Orphan page: no inbound links from other wiki pages
- Missing page: referenced by link but does not exist