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

# Explainability

> Understand model outputs by tracing responses to the sources and training data that influenced them.

export const SupportedOn = ({ui = false, api = true, sdk = true}) => <div className="inline-flex flex-wrap items-center gap-x-5 gap-y-2 px-4 py-2.5 rounded-lg border border-[#00dad3] bg-[#00dad3]/10 text-sm not-prose">
    <span className="font-bold text-black dark:text-white whitespace-nowrap">
      Supported on
    </span>
    <div className="flex items-center gap-5">
      <span className="inline-flex items-center gap-1.5 font-semibold text-black dark:text-white">
        <Icon icon={ui ? "circle-check" : "circle-xmark"} color={ui ? "#00dad3" : "#9ca3af"} size={16} />
        UI
      </span>
      <span className="inline-flex items-center gap-1.5 font-semibold text-black dark:text-white">
        <Icon icon={api ? "circle-check" : "circle-xmark"} color={api ? "#00dad3" : "#9ca3af"} size={16} />
        API
      </span>
      <span className="inline-flex items-center gap-1.5 font-semibold text-black dark:text-white">
        <Icon icon={sdk ? "circle-check" : "circle-xmark"} color={sdk ? "#00dad3" : "#9ca3af"} size={16} />
        SDK
      </span>
    </div>
  </div>;

<SupportedOn ui={true} api={true} sdk={true} />

Explainability traces model responses back to their origins—whether retrieved context in an agentic workflow or training examples from fine-tuning. This allows you to see which inputs influenced specific outputs.

Context attribution is available in Agent Chat, the API, and the SDK. Training data attribution is available in the API and SDK only.

## Use cases

**Debugging** – Identify which inputs drove unexpected or incorrect outputs. This helps locate problematic data sources or training examples.

**Auditing** – Document how AI systems reach decisions. Explainability provides traceable links between outputs and source materials for compliance and verification.

**Dataset refinement** – Analyze influential inputs to identify gaps or issues in your retrieval sources or training data.

## Attribution capabilities

SeekrFlow provides two attribution capabilities for different workflows:

<CardGroup>
  <Card title="Context attribution" icon="search" href="/flow/components/explainability/context-attribution">
    Identifies which retrieved sources influenced an agent's response. Traces statements back to vector database content, web search results, tool outputs, and conversation context.

    **When to use:** Agents with RAG, web search, or tools.
  </Card>

  <Card title="Training data attribution" icon="database" href="/flow/components/explainability/training-data-attribution">
    Identifies which training examples influenced a fine-tuned model's response. Traces outputs back to specific question-answer pairs from the training dataset.

    **When to use:** Fine-tuned models.
  </Card>

  <Card title="Source tracing" icon="location-dot" href="/flow/components/explainability/source-tracing">
    Identifies the exact location in the source document that a retrieved chunk came from. Traces responses back to the specific file, page, and lines the agent retrieved.

    **When to use:** Agents with RAG where document-level proof of origin is required.
  </Card>
</CardGroup>

## Choose the right capability

| Workflow                              | Attribution type          | What it traces                                                 |
| ------------------------------------- | ------------------------- | -------------------------------------------------------------- |
| Agents with RAG, web search, or tools | context attribution       | Retrieved sources that influenced each statement               |
| Fine-tuned models                     | training data attribution | Training examples that shaped model behavior                   |
| Agents with RAG                       | source tracing            | Exact location in the source document for each retrieved chunk |

If you use a fine-tuned model within an agent that also retrieves context, both capabilities can apply—context attribution for retrieval influence, training data attribution for fine-tuning influence.
