Query is not just question answering. In an LLM Wiki, useful answers can become new durable nodes so future sessions inherit today’s reasoning.
Query algorithm
- Read index.md first. Select likely pages by title, summary, tags, and page type.
- Open only the needed pages. Prefer compiled concept and source-summary pages before raw files.
- Answer with local citations. Cite wiki paths and source summaries so the user can audit the reasoning trail.
- Detect novelty. If the answer contains a new decision, matrix, synthesis, or open question, propose saving it.
- Save on request. Write a new page under wiki/syntheses/ or update an existing page, then update index.md and log.md.
Copy-paste query prompt
Answer this question from the compiled wiki first:
Question: <write the question>
Procedure:
1. Read wiki/index.md and choose the smallest useful page set.
2. Read selected wiki pages before reading raw sources.
3. Answer with citations to local wiki paths.
4. Mark unsupported claims as unsupported.
5. If the answer creates durable synthesis, ask whether to save it.
6. If saving is approved, update wiki/syntheses/, wiki/index.md, and wiki/log.md.
When to save an answer
| Save it when | Do not save it when | Likely destination |
|---|---|---|
| It compares multiple concepts in a reusable way. | It only repeats a single existing page. | wiki/syntheses/ |
| It resolves a repeated operational question. | It contains unverified speculation. | wiki/concepts/ or wiki/syntheses/ |
| It identifies a gap or contradiction. | It depends on stale or missing sources. | wiki/open-questions.md or wiki/contradictions.md |
Answer quality checklist
- The route from index.md to selected pages is explainable.
- The answer says when evidence is missing or contradictory.
- The answer cites local wiki paths rather than vague memory.
- Saved syntheses have frontmatter, related links, and source notes.