# Context — RAG Chunking Benchmarker Admin Dashboard ## Language **Dashboard**: A single-file React app (CDN-loaded, no build step) served by FastAPI at `/app`. Replaces Swagger as the primary UI for operating the RAG benchmarking platform. _Avoid_: Admin panel, web UI, frontend **Strategy**: One of the five chunking algorithms: fixed_size, recursive, semantic, contextual_retrieval, semantic_parent_child. _Avoid_: Method, approach, technique **Experiment**: A completed benchmark run — one document, N strategies, M questions, with per-question and aggregate metrics. _Avoid_: Run, trial, benchmark **Chunk Preview**: The ability to visualize what a specific strategy produces for a given document — the raw text blocks, their sizes, and hierarchy. _Avoid_: Chunk inspection, chunk view **Tab**: A persistent top-level navigation section of the Dashboard (Home, Documents, Query, Benchmarks, Admin). Tabs stay mounted when switching — state survives. _Avoid_: Page, route, view ## Architecture Decisions | # | Decision | Status | |---|----------|--------| ADR-0001 | Single-file React via CDN (no build step), served by FastAPI | Approved | ADR-0002 | New `/admin/` router for dashboard-specific backend ops (health, Qdrant CRUD, chunk preview, questions, cost) | Approved | ADR-0003 | Top-tab navigation (Home, Documents, Query, Benchmarks, Admin) — not sidebar | Approved | ADR-0004 | Babel-in-browser JSX: single index.html with inline