{% extends "base.html" %} {% import "_table.html" as tables with context %} {% block title %}Embeddings — Cairn Dashboard{% endblock %} {#- FR-011 status view: effective values with D-008 precedence per knob. The degradation banner above comes from the shared FR-013 accessor — the fallback rows here read ladder_state() only (no second builder). -#} {% block content %}

Embeddings

Effective embedding backend and per-corpus state for the selected store. The degradation banner (when present) and the fallback row below resolve from the same ladder state.

{% if rung %} {% if rung.adopted_model %} {% endif %} {% endif %}
Effective backend{{ backend }}
Resolved stamp{{ stamp }}
Server probe {% if not is_server %}n/a{% elif probe_ok %}healthy{% else %}unreachable{% endif %}
Fallback rung {% if rung %}rung {{ rung.rung }} {{ rung.reason }}{% else %}healthy no active fallback{% endif %}
Rung detail{{ rung.detail }}
Adopted model{{ rung.adopted_model }}

Corpora

{% call tables.table(['Corpus', 'Model', 'Rows', 'Last embedded']) %} {% for corpus in corpora %} {{ corpus.corpus }} {% if corpus.model %}{{ corpus.model }}{% else %}—{% endif %} {% if corpus.count is not none %}{{ corpus.count }}{% else %}—{% endif %} {#- An empty corpus has never embedded; an unreadable one (pre-table store, unresolvable backend) is unknown, not zero. -#} {% if corpus.last %}{{ corpus.last | isots }}{% elif corpus.count is none %}—{% else %}never{% endif %} {% endfor %} {% endcall %}

Configuration

Each knob's effective value (env > config file > default) and where it resolves from — a knob marked as overridden ignores whatever Settings saves to the file.

{% call tables.table(['Setting', 'Effective', 'Source']) %} {% for key, field in cfg.items() %} {{ key }} {% if key == 'CAIRN_EMBED_API_KEY' %}{% if field.effective %}set{% else %}not set{% endif %}{% else %}{{ field.effective or "—" }}{% endif %} {% if field.pinned %}overridden by environment{% elif field.effective %}config file{% else %}default{% endif %} {% endfor %} {% endcall %}
{% endblock %}