AI Interfaces
Context Provenance Map
A traceable input map showing how policies, retrieved documents, and user context shape an answer.
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
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>;
}<ContextProvenanceMap />Related components
Agent memory
Eduardo workspace
- Prefers compact dashboards
- Uses eval scorecards
- Ships with dark themes
AI Interfaces
Agent Memory Card
A compact memory summary card for personalized agents and workspace context.
Context compression
Compaction preview
- Keep
Decisions
1.8k
- Summarize
Discussion
8.4k → 1.2k
- Drop
Duplicates
2.1k
AI Interfaces
Context Compression Preview
A compaction preflight showing which conversation sections will be kept, summarized, or dropped.
Context conflict
Resolve competing claims
- Pricing guide · v8Current
Refund window: 30 days
- Support article · 2024Stale
Refund window: 14 days
AI Interfaces
Context Conflict Resolver
A grounded-answer control for comparing contradictory retrieved claims and choosing an authoritative source.