The short version
- AI can only find what was prepared well. Poor preparation is the most common cause of wrong answers.
- Four steps matter: read the document correctly, split it into sensible pieces, attach labels, and keep it current.
- Access rules must travel with every piece, so people only get answers from documents they are allowed to see.
The idea
Parsing extracts text and structure from files. PDFs, scans, tables and drawings are hard. If a table is read as a jumble of numbers, no later step can repair it.
Chunking splits documents into passages for embedding. If chunks are too large, the search is vague. If they are too small, the meaning is lost. Splitting along the document’s own structure, such as sections and clauses, works better than cutting every 500 words. A useful refinement adds a short line of context to each chunk, saying which document and section it came from.
Metadata is the set of labels on each chunk: document type, product, revision, date, owner, language. Labels let the system filter before it searches, for example “current revision only”.
Access control records who may see each chunk and is enforced when the search runs.
Freshness is the process that updates or removes chunks when the source changes.
Think about filing before a move. If you label the boxes by room and contents, you find the kettle on the first night. If you throw everything into unlabelled boxes, you open twenty of them. Document preparation is the labelling.
- Parse
- Split into chunks
- Add labels and access rules
- Embed
- Keep fresh
An example
A company loads product manuals into an assistant. Answers mix up two generations of a product, because both manuals are in the index and nothing marks which is current. The team adds labels for product family, revision and status, and filters to “current” by default. They split by section heading and add the manual title to each chunk. Wrong-generation answers stop, with no change to the model.
Common mistakes
- Loading every file from a shared drive, including drafts and duplicates.
- Ignoring tables and images, where much technical knowledge lives.
- No link from a chunk back to its source page, so answers cannot be checked.
- A one-time load with no update process.
What to do this week
- Open ten chunks from your index at random and read them. Ask if each makes sense alone.
- Check that each chunk carries revision, date and access labels.
- Ask what happens in the index when a source document is replaced.
The terms, in plain language
| Term | What it means |
|---|---|
| Parsing | Extracting text and structure from a file |
| Chunk | A passage of a document, stored and searched as one unit |
| Metadata | Labels attached to a chunk, such as date and revision |
| Ingestion | The whole process of loading documents into the index |
Further reading
Shorter articles and updates filed under this section, newest first.
Section 4.3 of the AI Engineering Guide · Last reviewed November 2026




