Back to components

AI Interfaces

Retrieval Health Card

A source-level health summary for RAG indexes, sync freshness, and retrieval quality.

retrievalragobservability

Installation

Copy and paste the code into your project.

Accessibility notes

Each source includes textual freshness and quality values instead of relying on colored indicators.

Retrieval health

Knowledge index

healthy
Product docs
Synced 2m ago
98%
Help center
Synced 1h ago
91%
Release notes
Synced 3d ago
76%

12,482 chunks indexed · 3 sources online

Preview accent

TypeScript
const sources = [
  { name: "Product docs", freshness: "2m", score: "98%", tone: "bg-[#40E0D0]" },
  { name: "Help center", freshness: "1h", score: "91%", tone: "bg-[#a78bfa]" },
  { name: "Release notes", freshness: "3d", score: "76%", tone: "bg-[#fb923c]" },
];

export function RetrievalHealthCard() {
  return (
    <section className="w-full max-w-sm rounded-xl border border-white/12 bg-[#0b0f14]/92 p-5 shadow-2xl">
      <div className="flex items-end justify-between"><div><p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#40E0D0]">Retrieval health</p><h3 className="mt-2 text-lg font-bold text-white">Knowledge index</h3></div><span className="text-xs font-semibold text-[#d8fffb]">healthy</span></div>
      <dl className="mt-4 space-y-2">{sources.map((source) => <div key={source.name} className="grid grid-cols-[auto_1fr_auto] items-center gap-3 rounded-lg border border-white/8 bg-white/[0.035] p-3"><span className={`${source.tone} h-2 w-2 rounded-full`} aria-hidden="true" /><div><dt className="text-xs font-semibold text-slate-200">{source.name}</dt><dd className="mt-1 text-[0.65rem] text-slate-500">Synced {source.freshness} ago</dd></div><dd className="text-xs font-black tabular-nums text-white">{source.score}</dd></div>)}</dl>
      <p className="mt-4 text-xs leading-5 text-slate-400">12,482 chunks indexed · 3 sources online</p>
    </section>
  );
}
Usage
<RetrievalHealthCard />

Related components

Retrieval health

Source freshness

1 stale
  • Product docsupdated 2h ago
  • Support indexupdated 3d ago
  • Policy archiveupdated 41d ago

Policy archive may reduce grounded-answer confidence until it is re-indexed.

AI Interfaces

Retrieval Freshness Gauge

Intermediate

A source-health view that highlights stale retrieval indexes before they weaken grounded answers.

retrievalfreshnessrag
View component

Retrieval plan

Quarterly risk brief

3 queries
  1. 1

    enterprise retention Q2

    Search Reports

    8 hits
  2. 2

    renewal risk signals

    Search CRM

    14 hits
  3. 3

    support escalation themes

    Search Tickets

    21 hits
Estimated context6.4k tokens

AI Interfaces

Retrieval Query Planner

Advanced

A preflight plan showing generated search queries, target sources, expected hits, and context cost.

retrievalqueriesrag
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