Three Primitives
The pipeline is always:
What Decomposition Decides
The feature extractor controls how an object is decomposed into documents. The strategy depends on the content type:Why It Matters
Without decomposition, a 30-minute video is one record. Searching for “the moment the CEO mentions revenue” means scanning the entire video. There’s no way to return a specific timestamp. With decomposition, that video becomes ~180 ten-second segments, each with its own transcript embedding, visual embedding, and scene description. A search returns the exact segment at 14:30 where the CEO says “revenue grew 22%.” The same applies to documents: a 200-page PDF becomes 200 searchable chunks instead of one monolithic record.Feature URIs
Every feature produced by decomposition gets a URI that uniquely identifies it:multimodal_embedding in one stage and face_embedding in another, even though they were produced by different extractors.
Configuring Decomposition
Decomposition is configured via thefeature_extractor field on a collection:
settings object controls the decomposition strategy. Each extractor has its own settings. See the extractor-specific pages for details:
From Video
Time, scene, and silence segmentation strategies
From Images
Visual embeddings, OCR, and structured extraction
From Audio
Silence-boundary segmentation and transcription
From Documents
Page, paragraph, and sentence chunking
Multi-Tier Decomposition
When a single extraction pass isn’t enough (e.g., you need to transcribe audio then embed the transcription then classify each chunk), you chain collections. Each tier reads the output of the previous one, forming a DAG:Lineage
Every document tracks its lineage back to the original object:Computing a layer at query time
A layer does not have to be stored to be searched. A retriever can run the decomposer a collection would use, on the few documents a search narrows to, during the query: Compute a layer at query time. Store a layer you query often, and compute one you query rarely.Searching across layers
Lineage also works at query time. A retriever can search one layer, for example scenes, and return the parent each hit came from, for example the whole video. Thetraverse_edge stage does this with follow: "lineage", and it attaches the matching scenes as _evidence. Search a piece, return the whole walks through the full pipeline.
