# Models

A model is the inventory Eraser builds from a [data source](/data-sources) – cloud resources, CMDB configuration items, virtual machines, network devices or architecture components – with their fields and connections. Browse it in Eraser, and use it in AI chat to create diagrams and documents from what you actually run.

## How models are built

A data source's first scan builds a model named after it, and every **Rescan** or [new upload](/uploading-files) updates it. **New Model** opens **Settings → Data Sources** to connect one.

A model's header shows its data source and last scan, and warns when the newest scan didn't reach the model.

<Figure src="/https/docs.eraser.io/assets/models-list.png" alt="The Models page, listing four models with their data source, record count and last sync" border />

## Browsing

Open **Models** in the sidebar (or press `M`) and pick a model. Narrow it with **Record types** and **Search records**, and sort or filter from any column's menu. Click a record to see its fields and connections.

<Figure src="/https/docs.eraser.io/assets/models-records.png" alt="A model's records: Azure virtual machines with their type and region, beside the record types to filter by, under a header naming the data source and its last scan" border />

## History

**⋯ → View history** lists each scan and edit that changed the model, and a record's page has a **History** section of its own.

## Using a model in AI chat

In an empty prompt, press `/`, choose **Models**, and pick one – up to five per request. AI chat uses it to create and edit diagrams and documents, such as [cloud diagrams](/cloud-diagrams), dependency maps and inventories, and [Verify](/diagram-verification) checks diagrams against it. A model stays attached for the rest of the chat and costs no extra credits.

[Maps](/maps) are built from models too.

<Figure src="/https/docs.eraser.io/assets/models-ai-chat-menu.png" alt="The AI chat reference menu open at Models, listing four models" width="300px" border />

## Organization models

Data sources connected in the [Organization Dashboard](/organizations) build models that every team in the organization can use, read-only. They're marked **ORG**.

## Archiving and deleting

**Archive** removes a model from AI chat, and **Restore** brings it back. An archived model can be deleted with **Permanently Delete** – its data source stays connected, but rescanning won't rebuild the model.

Team members (not guests) can archive and delete a team's models. Only organization admins can change organization models.
