> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cortex-labs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bring structured files into the world model

> Use Kato to prepare a Format bundle that turns structured-file records into text fragments, then apply world-model extraction and review the results.

Use Kato to prepare a Format bundle that turns structured-file records into text fragments, then apply world-model extraction and review the results.

For GeoJSON, a normal upload already produces geo fragments for the dataset map. Use this route when extraction should also read each feature's properties and position as text.

## Before you begin

You need Forge authoring access, a test dataset you can update and authority to attach an enrichment. The dataset must reach the intended workspace through a collection. The workspace needs suitable domain-schema types and a model enabled for enrichment.

Start with two or three permitted records that preserve the real file structure.

## 1. Describe the transformation to Kato

> Draft a Format bundle for \[file type] using this sample: \[sample]. Write one text record per source feature for world-model extraction. Key records on \[stable required ID]. Use full field names, explicit units, RFC 3339 times where the source supplies them, and positions with explicit latitude and longitude. Include a short factual description. Declare the file patterns and media types it accepts. Show the code, descriptor and expected output before creating or publishing anything. Do not bind or upload yet.

A Format bundle reads an uploaded file. It cannot use the network or secrets. For a remote API, use [Bring API data into the world model](https://docs.cortex-labs.ai/vantage/bring-in-data/map-api-data.md).

## 2. Inspect the expected records

| Check | What good looks like |
| - | - |
| Bundle kind | **Format**. |
| Accepted files | Patterns and media types match your files. |
| Identity | A required stable ID identifies each feature. |
| Key scope | **Dataset** updates the same item across uploads; **File** keeps files' items separate. |
| Position | Axis names or a recognised geometry make coordinate order explicit. GeoJSON coordinates are longitude first. |
| Time | The source time and time zone are preserved; missing times stay missing. |
| Attributes | Numeric units and field meanings remain clear. |
| Invalid records | The agreed validation rule reports a clear failure. |

Use explicit axis labels rather than ambiguous number lists. Do not invent a timestamp or unit to make a record appear complete.

## 3. Publish and bind the bundle

Ask Kato to revise the draft until it matches the source. Create and publish the reviewed bundle, inspecting any approval card.

Open the dataset's **Settings → Format bundles**, select **Bind a bundle**, and choose its published version and file selectors. The binding pins that version. The first binding that selects a file reads it.

You can also select the bundle through **Read with** at upload.

Binding a deterministic bundle can start production work. Use the test dataset and intended sample before binding; do not treat binding as a preview.

## 4. Upload and inspect the sample

Upload the small sample and check:

* **Files:** the intended bundle read the file.
* **Errors:** parsing or validation failures are visible.
* **Fragments:** each record preserves the intended ID, attributes, position and time.

If parsing fails, give Kato the error without credentials or private material the chat cannot receive. Publish and bind a corrected version before trying the wider input.

## 5. Apply world-model extraction

Open **Analysis → Attach enrichment** on the dataset and select the published **World model extraction** version.

Check the binding, execution principal, billing team and expected input. Binding the LLM enrichment and enabling automatic processing are separate actions. Use a bounded manual pass or enable automatic processing deliberately.

Start with the sample: each fragment is read by a model. Follow [Apply an enrichment to a dataset](https://docs.cortex-labs.ai/vantage/bring-in-data/apply-enrichment.md) for processing controls and costs.

## 6. Review the world model

Open the workspace's **World Model**. Inspect **Entities**, then follow an entity's mentions to the exact source fragments.

Check identity, type, position, time and attributes. An Owner accepts correct entries and hides incorrect ones. New entries are unreviewed; acceptance is a curation decision, not independent proof.

Use the available filters to inspect **New**, **Other** and **Unplaced** entries. Compare types with the pinned domain schema and inspect missing position or time before changing the schema or source.

## Keep the result current

With Dataset key scope and stable IDs, changed features can create new versions of the same items. A new bundle version must be bound deliberately; inspect reprocessing and the Analysis page afterwards.

| Symptom | What to inspect |
| - | - |
| File not read by the bundle | File selectors, media type and earlier matching bindings. |
| Fragments but no entities | Extraction binding, processing state, model availability and workspace reach. |
| Type appears under Other | Whether the pinned domain schema lists it. |
| Entity is unplaced | Source position and time, coordinate order and extraction result. |
| Duplicate feature | Stable ID and key scope. |

All fragments take the dataset's security level. Check which workspaces reach it before expanding the input.

See [Understand mentions, entities and relationships](https://docs.cortex-labs.ai/vantage/explore-evidence/mentions-entities-relationships.md) for interpreting the result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.