# Build Document Visual Manifest

Organize pages, visual objects, text, and image references from drawings or documents into a manifest shared by text and image indexes.

Connect Document Text Embedding or Image Embedding after creating the manifest.

## Build from drawing results

The default profile is `industrial_drawing_v1`. This path requires the full `cad_result` from [CAD Drawing Segmentation](cad-segmentation.md).

Bind the complete result, retaining page sources and artifact file references.

For ordinary documents with text and images, use the [Prepare Document Knowledge Base with Image Index](../../templates/document-image-index.md) template, which supplies the corresponding parsing and manifest settings.

## Configure bindings

| Input or setting | Description |
| --- | --- |
| `cad_result` | Upstream analysis for the default drawing path |
| Sources and documents | The selected path uses `sources`, file references, or `documents`, retaining source information |
| `enabled` | When false, skips processing and returns a disabled status |

## Use the output

| Output | Purpose |
| --- | --- |
| `manifest` / `manifests` | One or more visual manifest objects |
| `manifest_file_id` / `manifest_file_ids` | Saved manifest file references |
| `documents` | Document records in the manifest |
| `derived_file_ids_by_source` | Derived images for each original file |
| `indexed_image_file_ids` | Image set that later lineage registration must cover |
| `status` / `validation` | Processing status and manifest validation details |

For multiple files, pass all `manifest_file_ids` and source mappings downstream. Run indexing only after manifests are successfully generated.

## Example: connect drawing analysis to retrieval

Flow: CAD Drawing Segmentation → Build Document Visual Manifest → Document Text Embedding and Image Embedding.

Bind the full CAD result and use the same manifest set for both indexes. Retain source mappings for final lineage registration.

## Related pages

- [Variables and data flow](../../variables-and-data.md)
- [Run and debug](../../run-debug.md)
