# RAG Retrieval Inspector

RAG debugging console that breaks down why a chunk did or did not pass the vector similarity and reranker cutoff threshold.

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

## Install

```bash
agentic-ui add rag-retrieval-inspector
npx shadcn@4.17.0 add @agentic-ui/rag-retrieval-inspector
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** retrieval-fragments-list, score-breakdown-visualization, cross-encoder-rerank-analysis, dense-vector-similarity, sparse-bm25-lexical-match, interactive-threshold-simulation, query-term-matching, provenance-metadata-inspection, chunk-copy, keyboard-navigation, empty-state, error-recovery
- **Intents:** retrieve-knowledge, explore-detail, audit-trail, track-status
- **Suits domains:** knowledge, ai-workspace, devtools, support, saas
- **Interaction:** interactive-threshold-slider, fragment-selection-inspection, keyboard-listbox-navigation, status-filter-toggle, query-keyword-highlight
- **Screen role:** detail
- **Density:** comfortable
- **Dark mode:** yes
- **Use it for:** RAG debugging console that breaks down why a chunk did or did not pass the vector similarity and reranker cutoff threshold, LLM answer auditor that inspects the provenance and term overlap of fragments retrieved from the vector store, test bench to dynamically calibrate the minimum similarity threshold before injecting context into the prompt, observability explorer for hybrid search pipelines combining dense vectors and sparse BM25
- **Avoid when:** direct editing or uploading of documents is required (use rag-source-manager), simple answers without grounding or a retrieval pipeline
- **Preserve when adapting:** master-detail-layout, score-breakdown-visualization, dynamic-threshold-filtering, keyboard-navigation-contract
- **Replace when adapting:** domain-documents-and-metadata, retrieval-engine-metrics, color-threshold-scales
- **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
