How chunking works
MIRA uses a single fixed-size chunking strategy: the document text is split into windows of a fixed character count, with adjacent windows overlapping by a configurable number of characters.
The overlap prevents important context from being lost when it falls at a chunk boundary — the tail of one chunk repeats as the head of the next.
How chunks are injected into context
When a document is active in a session:- All chunks are stored in MIRA’s local database after upload.
- Chunks are injected sequentially from the start of the document.
- Injection continues until the engine’s context budget is reached.
- For large documents where not all chunks fit, chunks at the end of the document may be omitted.
MIRA does not perform vector similarity search or semantic retrieval. All chunks are injected in
document order, subject to the context budget. For very large documents (hundreds of pages),
consider splitting them into topically focused files before uploading.