BAR Detail Summary (UIDeva)
Problem
Benefit Action Requests (BARs) arrive as unreadable RxClaim config exports (.xlsx/.csv, 300k+ rows). Analysts hand-decode before/after field diffs to learn what a change does. It’s slow, error-prone, and unauditable.
Solution
Upload a BAR file and get a plain-English report (preview + Word download) and a doc-scoped chat. Python computes every count, date, and value from field roles. The LLM only writes the prose around those facts.
Workflow
Upload → stream-parse → field-role resolver (rules → value-shape → LLM label fallback) → deterministic facts → LLM prose (map-reduce for large BARs) → .docx → review/edit → chat (Lumina agent over the generated doc).
Auth
PingFederate (PingID) OAuth2 authorization-code flow, JWT sessions, plus a MyPBM token validator. LLM calls use OAuth2 client credentials.
Data
- Postgres via async SQLAlchemy for document metadata (BAR number, client, plan, audit fields), with a separate DB microservice.
- Redis (CAP sidecar) for cache, with an in-memory fallback.
- Langfuse for traces and eval scores.
UI
Angular 20: zoneless, signals, OnPush, CVS ACL components. Pages: Home, Library, Review/Preview.
Platform
- Single FastAPI process serves the API and the compiled SPA.
- Distroless, non-root CAP container.
- GitHub Actions run CI/CD, PR policy, and an eval gate (fails under 80%).
- The LLM is CVS Hyperion LMS only, so PHI/PII stays in-network.
Impact
- Replaces a manual decode-and-write task with upload → review → download.
- Output is grounded and traceable.
- The Library supports governance and historical comparison (TLDPA-322587).
- The repo has no hard metrics (hours saved, volume); add them before sharing.
The fun challenge
Making an LLM trustworthy over legacy data with no stable schema. RxClaim labels vary, and identifiers (GPI/NDC/MDL) repeat per flag type. So the resolver infers meaning from value shape, dedupes identifiers, and keeps the model away from arithmetic. That separation is why the hallucination evals mean something.
[cite: 4]