# Build a wiki from your documents

> Step by step — upload files, let your assistant write pages with checked citations, then review them as a second reader.

Source: https://sinapsi.wiki/docs/build-a-wiki-from-documents/

## 1. Upload

Create a private space and upload your files (PDF, Word, PowerPoint, Excel, text). Check them with `my_documents`.

## 2. Read everything first

Ask your assistant to call `how_to_build_wiki`, then to read **all** the documents with `read_document` before writing a single page. The map of concepts comes from the whole set, not from the first file.

## 3. Write pages, one concept each

A good page follows these rules (the full version is returned by `how_to_build_wiki`):

1. **One page = one concept**, never "one uploaded file". A document with three ideas becomes three linked pages.
2. **Every section under an anchor** (`##` or `**Label:**`) is a claim a person can confirm or correct on its own. Aim for 500–2,000 characters per section.
3. **Explicit `[[links]]`** between related pages: the graph is made only of these.
4. **Provenance always**: where the information comes from and how it was checked.
5. **Write down what does not work**: the routes tried and closed, and why. It is the most valuable part of a wiki.

Every fact from a document carries its citation, for example `[doc:annual-report-a1b2#p14 «revenue grew 12%»]`. `write_page` checks each citation and reports problems straight away.

## 4. Check as a reviewer

In a new session, or with a different model, ask the assistant to act as a reviewer who did not write the page: reread it with `get_page`, reopen the cited pages with `read_document`, and record what holds and what does not with `record_document_check`. Fix the unsupported sentences and check again.

## 5. Keep it current

When a document changes, upload the new version and update the pages it supports. Weights stay on sections that did not change; changed sections start again.
