analysis block carries derived data for retrieval and AI workflows. It is optional and discardable: a document without analysis is still canonical.
Shape
analysis.embeddings
A map keyed by the UUID of the target (scene, element, or character), whose value is an array of one or more embedding records:
source enum: name · text · desc · heading · composite.
analysis.passages
Retrieval-sized text chunks keyed back to their source:
analysis.summaries
Document- or scene-scoped summaries:
scope enum: document · scene.
analysis.settings
Records how the analysis was produced, for reproducibility:
| Field | Type | Description |
|---|---|---|
model | string (≤100) | Embedding or summary model identifier. |
size | integer ≥1 | Chunk size. Default 512. |
overlap | integer ≥0 | Chunk overlap in tokens. Default 64. |
tokeniser | string (≤50) | Tokeniser identifier (e.g. cl100k). |
meta | meta map | Free-form string key/value extension. |