# RAG Freshness Badge

RAG source manager that flags which indexed documents have become obsolete.

- id: `rag-freshness-badge`
- Page: https://agentic-ui-kit.com/components/rag-freshness-badge
- Live preview: https://agentic-ui-kit.com/live/component/rag-freshness-badge

## Install

```bash
agentic-ui add rag-freshness-badge
npx shadcn@4.17.0 add @agentic-ui/rag-freshness-badge
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** source-age-display, staleness-thresholds, obsolete-content-alert, index-lag-detection, reindex-recovery, alert-dismissal, details-disclosure, compact-variant, empty-state, keyboard-navigation
- **Intents:** retrieve-knowledge, track-status, audit-trail, monitor-live
- **Suits domains:** knowledge, ai-workspace, ai-agents, devtools, operations
- **Interaction:** details-disclosure, reindex-recovery, alert-dismissal, keyboard-navigation
- **Screen role:** detail
- **Density:** medium
- **Dark mode:** yes
- **Use it for:** RAG source manager that flags which indexed documents have become obsolete, citation panel where each retrieved source shows its age next to the snippet, vector database maintenance console that detects indexes older than the latest document revision, document governance view with a retention window and a reindex action
- **Avoid when:** the source has no notion of age or expiry (use generic status labels), the full version history of the document is needed instead of the freshness indicator (use a revision timeline), the full indexing lifecycle with upload and re-sync must be managed (use rag-source-manager)
- **Preserve when adapting:** freshness-tier-model, threshold-configurability, alert-and-status-announcements, keyboard-contract, deterministic-age-computation
- **Replace when adapting:** domain-copy, threshold-values, date-formatting, retention-policy-wording
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 9.2/10
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** badge, button
- **Motion:** profile subtle, library css, reduced-motion fallback yes
- **Registry dependencies:** lib-primitives
