Files
DBAdmin/brain/GEMINI.md
T
Paweł Domański ab6daac16b Jun 9, 2026, 3:23 PM
2026-06-09 13:23:52 +00:00

8.2 KiB

LLM Wiki Schema: Personal Technical Knowledge Base

This document defines the structure, conventions, and workflows for maintaining the LLM Wiki in this repository.

Overview

This wiki is an LLM-maintained knowledge base focused on AI, Databases, Programming, and Knowledge Management, integrated with Feynman's 12 Favorite Problems framework. The LLM writes and maintains all files under wiki/. The human curates raw sources and directs queries.

The Core Idea: Unlike traditional RAG systems that re-derive answers from scratch on every query, this wiki is a persistent, compounding artifact. The LLM incrementally builds a structured, interlinked collection of markdown files. When new sources are added, the LLM integrates the knowledge, updates cross-references, and flags contradictions. You (the human) are in charge of exploration; the LLM does the bookkeeping. Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase.

Architecture

There are three distinct layers to this setup:

  1. Raw sources (raw/) — Your curated collection of source documents. These are immutable.
  2. The wiki (wiki/) — A directory of LLM-generated markdown files (summaries, concepts, etc.). The LLM owns this layer entirely.
  3. The schema (this GEMINI.md file) — The configuration file that tells the LLM how the wiki is structured and what workflows to follow.

Directory Layout

  • raw/ — Immutable source documents (transcripts, articles, notes). Never modify these.
  • wiki/ — LLM-generated markdown files.
    • wiki/summaries/ — One summary page per raw source document.
    • wiki/concepts/ — Concept, strategy, and framework pages.
    • wiki/entities/ — Entity pages (tools, technologies, organizations, products).
    • wiki/syntheses/ — Comparison tables, decision frameworks, cross-cutting analyses.
    • wiki/journal/ — Research or session journal entries.
    • wiki/presentations/ — Marp slide decks generated from wiki content.
    • wiki/feynman_problems.md — Central tracking of long-term problems.
    • wiki/index.md — Master catalog and portal to thematic indices.
    • wiki/indices/ — Thematic and type-based index files.
    • wiki/log.md — Append-only activity log.

File Naming & Format

  • Naming: All lowercase, hyphens for word separation: concept-name.md. No spaces or special characters.
  • Frontmatter:
    ---
    title: "Page Title"
    type: concept | entity | summary | synthesis
    tags: [tag1, tag2]
    created: YYYY-MM-DD
    updated: YYYY-MM-DD
    sources: ["[[Source Link]]"]
    confidence: high | medium | low
    ---
    

Required Sections by Page Type

Summary pages (wiki/summaries/)

  • ## Key Points — Bulleted list of main claims/ideas.
  • ## Relevant Concepts — Links to concept pages this source touches.
  • ## Source Metadata — Type of source, author/speaker, date, URL or identifier.

Concept pages (wiki/concepts/)

  • ## Definition — One-paragraph plain-English definition.
  • ## How It Works — Mechanics, process, or structure of the concept.
  • ## Key Parameters — Important variables, dimensions, or factors.
  • ## When To Use — Situations and contexts where this concept applies.
  • ## Risks & Pitfalls — Known failure modes, common mistakes, limitations.
  • ## Related Concepts — Wiki links to related pages.
  • ## Sources — Which raw sources inform this page.

Entity pages (wiki/entities/)

  • ## Overview — What this entity is.
  • ## Characteristics — Key properties, attributes, structure.
  • ## Common Strategies — Links to concept pages for strategies or methods associated with this entity.
  • ## Related Entities — Links to related entity pages.

Feynman's 12 Problems Framework

We maintain a list of ~12 "Favorite Problems" in wiki/feynman_problems.md. Every new piece of information is checked against this list to see if it offers a new insight or connection.

Operations / Workflows

1. Ingest

You drop a new source into the raw collection and tell the LLM to process it.

  1. Read the raw source completely. Discuss key takeaways if prompted.
  2. Create wiki/summaries/<source-slug>.md with a full summary.
  3. Identify all concepts, entities, and strategies mentioned.
  4. Feynman Check: Compare against wiki/feynman_problems.md and update it if connections are found.
  5. Create/Update concept and entity pages using the required sections.
  6. Add cross-links in both directions between all touched pages.
  7. Update wiki/log.md and relevant indices in wiki/indices/.
  8. Update wiki/index.md if new categories are needed.
  9. Flag any contradictions with existing content. (A single source might touch 10-15 wiki pages. The LLM handles the cascading updates.)

2. Query

You ask questions against the wiki. The LLM searches for relevant pages, reads them, and synthesizes an answer.

  1. Read wiki/index.md and relevant thematic indices to find pages.
  2. Synthesize an answer with explicit citations (wiki links). Answers can take different forms (markdown page, comparison table, slide deck, chart).
  3. Crucial insight: Good answers should be filed back into the wiki as new pages (e.g., in wiki/syntheses/). A comparison you asked for or a connection you discovered shouldn't disappear into chat history.

3. Lint

Periodically, ask the LLM to health-check the wiki.

  1. Look for orphan pages with no inbound links.
  2. Check for contradictions between pages or stale claims that newer sources have superseded.
  3. Find important concepts mentioned but lacking their own page.
  4. Identify missing cross-references or data gaps that could be filled with a web search.
  5. Suggest new questions to investigate and new sources to look for to keep the wiki healthy as it grows.

Indexing and Logging

Two special files help navigate the wiki as it grows:

  • wiki/index.md (Content-oriented): A catalog of everything in the wiki. Each page listed with a link, a one-line summary, and optionally metadata (date, source count). Organized by category. The LLM updates it on every ingest. Read this first when answering a query.
  • wiki/log.md (Chronological): An append-only record of what happened and when (ingests, queries, lint passes). Prefix entries consistently (e.g., ## [YYYY-MM-DD] ingest | Title) so it's parseable via simple grep commands.

Why this works

The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping: updating cross-references, keeping summaries current, noting contradictions, and maintaining consistency. Humans abandon wikis because the maintenance burden grows faster than the value. LLMs don't get bored, don't forget to update cross-references, and can touch 15 files in one pass. The human curates sources and directs the analysis; the LLM does everything else. This relates to Vannevar Bush's Memex (1945) — a curated knowledge store with associative trails — but solves the problem of "who does the maintenance".

Rules

  • Never modify files in raw/.
  • All dates in ISO 8601 format: YYYY-MM-DD.
  • Use Obsidian-style links: [[concepts/concept-name]].
  • Confidence levels: high (multiple sources), medium (single source), low (speculative).
  • Polish language for content, English/Technical slugs for filenames.

Optional Tools & Tips

  • Obsidian Web Clipper: Browser extension for converting web articles to markdown to quickly get sources into your raw/ collection.
  • Download Images Locally: Configure Obsidian to download attachments locally (e.g., to raw/assets/). This allows the LLM to view and reference images directly without relying on URLs that may break. (LLMs may need to read text first, then process images separately).
  • Obsidian Graph View: The best way to see the shape of the wiki, identify hubs, and spot orphan pages.
  • Dataview Plugin: Use this Obsidian plugin to generate dynamic tables and lists by querying the YAML frontmatter the LLM adds to pages.
  • Marp: Markdown-based slide format. Used in wiki/presentations/ to generate decks directly from content.
  • qmd (Search Tool): A local search engine for markdown files (hybrid BM25/vector search + LLM re-ranking). Very useful as the wiki grows beyond what index.md can efficiently handle. Can be used as a CLI tool or MCP server.