Skip to main content
Version: 4.0

2.5 Model

The Model is where you define the structure of the knowledge graph. It is the central component of the Data Context Hub: a visual workspace where you design the entities, connections and data sources that make up your graph. You work with the Model in the DCH application, under Model in the sidebar.

A Model is built from three kinds of element:

  • Target Entities: the data structures that become node types in the knowledge graph. Each entity maps properties from a data source into the graph schema.
  • Relationships: the connections between Target Entities, which become the edges of the graph.
  • Data Sources: the link to external data, through Intake Agents.

Sessions​

Work in the Model happens inside a Session. The session tabs (Session 1, Session 2, and so on) sit at the top of the workspace, and each one remembers its own isolated subset and whether it is in the Model or the Build step. Use + to open another session (up to three) and × to close one, so you can keep separate pieces of work side by side without losing your place.

Sessions live in your browser tab: closing the tab discards them, but nothing in the Model itself is lost.

From Model to Build​

Each session takes you through two steps, shown in the stepper at the top:

  1. Model: isolate and curate the part of the graph you want to work on.
  2. Build: process the selected Target Entities into the knowledge graph.

Once you have isolated a subset, the stepper shows how many entities are selected. Click Target Entities on the canvas, or use Select All, then choose Build Selected to move them to the Build step. Back to Model returns you without losing the selection.

Isolating a subset​

A Model can contain hundreds of Target Entities and Relationships, so the canvas does not load the whole Model at once. Instead, you isolate a subset: the part of the Model you want to see and build. Until you do, the canvas shows Limit the view to start exploring with a count of the Target Entities, Relationships and Data sources in the Model.

  • Use the Search field and the Target entities, Relationships and Data sources tabs to find elements, select them, and choose Isolate.
  • Once a subset is isolated, the list shows only the Isolated subset. Choose Add more to pick further elements, or select rows and choose Remove from subset.
  • On the canvas, use the + on a Target Entity or Data Source to add its related elements to the subset.
  • Choose Exit isolation to clear the subset and start again.

Isolation only changes what is displayed; it never removes anything from the Model.

The Model workspace: the session tabs and the Model to Build stepper at the top, the isolated subset on the left, and Target Entity cards linked by a Relationship on the canvas

The canvas​

On the canvas, each element is drawn so you can see how data flows between them:

  • Target Entities: cards showing the entity's description and when and by whom it was last changed. These become the node types of the graph.
  • Relationships: lines between Target Entities, labelled with the relationship type.
  • Data Sources: the Intake Agents data enters through, shown when you turn on Data Source nodes.

The canvas controls let you switch between two automatic layouts, show or hide Data Source nodes, zoom in and out or fit the view, and download the canvas as a PNG image.

To create elements, choose Add new (Target entity, Relationship or Data source), or drag an item from the palette at the bottom of the canvas onto it. You can also draw a connection on the canvas: from one Target Entity to another to create a Relationship, or from a Data Source to a Target Entity to create a Data Import Configuration.

Double-click an element (or its row in the list) to open its details in a panel on the right (see Target Entities, Relationships and Data Sources).

Work with a selection​

Select one or more Target Entities, in the list or on the canvas, to act on them together. AI features are marked in purple:

  • Summary: open the Selected entities dashboard, the same entity statistics as on the Dashboard, for just these entities.

  • Suggest descriptions: let AI propose descriptions for the selected Target Entities. This action is available for entities in an isolated subset, in the list or on the canvas. You can edit each suggestion, clear Apply this suggestion to skip one, or Regenerate it. Nothing is saved until you choose Apply.

    AI description suggestions for docs_customers and docs_orders, with the suggested text ready to review before Apply

  • Analyze: let AI write a read-only analysis. For one entity it covers key facts, important properties, connected entities and potential uses; for several, it describes the group and how its entities connect. Enter an Optional focus and choose Regenerate to steer it, or copy the result. The analysis runs in the background, and you can minimize it and keep working.

    The Analyze result for docs_customers and docs_orders: a summary, group facts, connections, and structural and sample insights

note

The AI features in the Model use the M4AI Agent System with the slug target-entity-assistant. If it is not published, the AI buttons are disabled.