Back to components

AI Interfaces

Context Provenance Map

A traceable input map showing how policies, retrieved documents, and user context shape an answer.

contextprovenancetraceability

Installation

Copy and paste the code into your project.

Accessibility notes

Sources remain ordered in a semantic list with textual token and influence values; arrows are decorative.

Context provenance

Answer input map

  • System policy

    1.2k · High

  • Product brief.pdf

    3.8k · High

  • User message

    184 · Direct

Final answer

5.2k input tokens

All influential sources are visible and traceable.

Preview accent

TypeScript
const sources = [{ name: "System policy", tokens: "1.2k", influence: "High" }, { name: "Product brief.pdf", tokens: "3.8k", influence: "High" }, { name: "User message", tokens: "184", influence: "Direct" }];

export function ContextProvenanceMap() {
  return <section className="w-full max-w-md rounded-xl border border-white/12 bg-[#0b0f14]/92 p-4 shadow-2xl">
    <header><p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#a78bfa]">Context provenance</p><h3 className="mt-1 text-base font-bold text-white">Answer input map</h3></header>
    <div className="mt-4 grid grid-cols-[1fr_auto_1fr] items-center gap-3"><ul className="space-y-2">{sources.map((source) => <li key={source.name} className="rounded-lg border border-white/9 bg-white/[0.025] p-2.5"><p className="text-xs font-semibold text-slate-200">{source.name}</p><p className="mt-1 text-[0.65rem] text-slate-500">{source.tokens} · {source.influence}</p></li>)}</ul><span aria-hidden="true" className="text-[#40E0D0]">→</span><div className="rounded-xl border border-[#40E0D0]/25 bg-[#40E0D0]/[0.07] p-3 text-center"><p className="text-xs font-bold text-white">Final answer</p><p className="mt-1 text-[0.65rem] text-slate-500">5.2k input tokens</p></div></div>
  </section>;
}
Usage
<ContextProvenanceMap />

Related components

Agent memory

Eduardo workspace

3 saved
  • Prefers compact dashboards
  • Uses eval scorecards
  • Ships with dark themes

AI Interfaces

Agent Memory Card

Intermediate

A compact memory summary card for personalized agents and workspace context.

agentmemorycontext
View component

Context compression

Compaction preview

−7.5k tokens
  • Decisions

    1.8k

    Keep
  • Discussion

    8.4k → 1.2k

    Summarize
  • Duplicates

    2.1k

    Drop
Projected context5.4k / 16k

AI Interfaces

Context Compression Preview

Advanced

A compaction preflight showing which conversation sections will be kept, summarized, or dropped.

contextcompressiontokens
View component

Context conflict

Resolve competing claims

2 sources
  • Pricing guide · v8Current

    Refund window: 30 days

  • Support article · 2024Stale

    Refund window: 14 days

Recommended: prefer v8 because it has the newer effective date and product-owner approval.

AI Interfaces

Context Conflict Resolver

Advanced

A grounded-answer control for comparing contradictory retrieved claims and choosing an authoritative source.

contextconflictretrieval
View component