{% extends "base.html" %} {% block title %}{{ model.name }}{% endblock %} {% block content %}

{{ model.name }} [{{ model.kind }}]

{{ model.description or '' }}

Materialization: {{ model.materialization }} · code_version: {{ model.code_version }} {% if model.tags %} · {% for t in model.tags %}{{ t }}{% endfor %}{% endif %}

{% if model.depends_on %}

Depends on

{% elif model.source %}

Source

{{ model.source }}

{% endif %} {% if model.extraction %}

Extraction

Backend: {{ model.extraction.backend }}

{% if model.extraction.options %}
{{ model.extraction.options | tojson(indent=2) }}
{% endif %} {% endif %} {% if model.transform %}

Transform

Module: {{ model.transform.module }}

{% endif %} {% if model.embed %}

Embedding

Provider: {{ model.embedding.provider }} · Model: {{ model.embedding.model }} · Dimensions: {{ model.embedding.dimensions }}

{{ model.embed | tojson(indent=2) }}
{% endif %} {% if model.llm %}

LLM transform

Provider: {{ model.llm_identity.provider }} · Model: {{ model.llm_identity.model }} · Cardinality: {{ model.llm.output_cardinality }}

{{ model.llm | tojson(indent=2) }}
{% endif %} {% if model.resource_type == 'search_index' %}

Serving resource

Store: {{ model.output.serving_resource.store_type }} · Collection: {{ model.output.serving_resource.physical_collection }} · Access: {{ model.access }}

Upstream: {{ model.output.serving_resource.upstream }}

config_fingerprint: {{ model.output.serving_resource.config_fingerprint }}

{% endif %} {% if model.agent_context %}

Agent context contract

Contract: {{ model.agent_context.contract }} · Grain: {{ model.agent_context.grain }} · Relation: {{ model.agent_context.relation.fully_qualified }}

Primary key: {% for key in model.agent_context.primary_key %}{{ key }}{% if not loop.last %}, {% endif %}{% endfor %}

{% if model.agent_context.foreign_keys %}

Foreign keys

{% for field, target in model.agent_context.foreign_keys.items() %} {% endfor %}
FieldReferences
{{ field }}{{ target }}
{% endif %} {% for field in model.agent_context.fields %} {% endfor %}
FieldTypeNullableDescription
{{ field.name }} {{ field.data_type }} {{ 'yes' if field.nullable else 'no' }} {{ field.description }}
{% endif %} {% if model.fields %}

Fields

{% for f in model.fields %} {% endfor %}
NameDescription
{{ f.name }}{{ f.description or '' }}
{% endif %} {% if model.tests %}

Tests

{% endif %} {% if last_run %}

Last run

{% if last_run.artifact_version %} {% endif %} {% if last_run.artifact_path %} {% endif %} {% if last_run.metrics %} {% endif %} {% if last_run.artifact_metadata %} {% endif %} {% if last_run.errors %} {% endif %}
processed{{ last_run.documents_processed }}
skipped{{ last_run.documents_skipped }}
rows written{{ last_run.rows_written }}
duration (s){{ last_run.duration_seconds }}
artifact version{{ last_run.artifact_version }}
artifact path{{ last_run.artifact_path }}
metrics
{{ last_run.metrics | tojson(indent=2) }}
artifact metadata
{{ last_run.artifact_metadata | tojson(indent=2) }}
errors
{{ last_run.errors | join('\n') }}
{% endif %} {% endblock %}