Product Wiki7 min read

Complete Product Wiki & Feature Guide

Point-wise visual walkthrough of every screen in Atreya-MD: Auth/RBAC, Batch Submit, Regression Datasets, Jobs SSE, Result Explorer DAG, Knowledge Space & Settings.

1. Authentication, 2-Role RBAC & Static API Keys (/settings/users)

Security
  • Two strict roles: admin (full write/publish/user CRUD) and readonly (view-only; all mutating APIs return HTTP 403).
  • Safeguards block deleting or disabling the last active admin account.
  • Every user can mint exactly one immutable static API key (sk_amd_...) — requesting a second returns HTTP 409 Conflict.
  • Users view/copy their own static key in Settings; admin tables display masked prefixes only.
Appliance Workspace Route Map (React Router Deep-Linkable)
/submit
Batch & Regression Sandbox

Parquet/CSV stream, editable ground-truth rows, single-chart test.

/jobs
Live SSE Job Dashboard

Real-time counters, Retry Failed checkpoints, F1 badges, exports.

/results/:id
6-Stage Explainability DAG

Color-coded multi-section chart viewer + ⊘ END drop trace.

/skills/:s/:n
Skills (.md) & CI

YAML validation, SHA-256 diff/rollback, Draft vs Prod CI gate.

/knowledge
Knowledge Space

Hybrid search, 3D SVD embedding angles, 2-hop KG, live CRUD.

/settings/*
Platform Settings

Multi-LLM registry, S3/MinIO hot-swap, MCP discovery, RBAC keys.

2. Batch Submission, Editable Regression Datasets & Sandbox (/submit)

Core Workflow
  • Batch Ingestion: Drag & drop .csv, .tsv, .parquet, or .jsonl streamed via Polars + DuckDB + PyArrow (constant RAM).
  • Editable Regression Datasets: Upload ground-truth ICD files, add/inline-edit/delete rows directly in UI, and run scored benchmarks.
  • Automated Scoring: Computes chart-level & dataset-level Accuracy (Jaccard + Exact Match), Precision, Recall, Micro-F1, and Macro-F1.
  • Single-Chart Sandbox: Resizable multi-section chart editor with auto-saved prefix-searchable ComboBoxes (Department, Sub-Department, Client, Insurer).
VISUAL WALKTHROUGH · 03:20

Video Guide: Uploading Ground-Truth Regression Datasets & Running Scored Evaluations

  • • Auto-detecting expected_codes & chart_text columns
  • • Inline editing gold ICD-10-CM labels in the UI
  • • Comparing Micro-F1 & TP/FP/FN chips across LLM profiles
Request Interactive Sandbox

3. Job Dashboard & Live SSE Progress (/jobs)

  • Real-time Server-Sent Events (SSE) progress bar tracking processed, cached, failed rows, latency, and USD cost.
  • Retry Failed: Durable chart_checkpoints re-run only failed rows without re-billing succeeded charts.
  • Multi-Format Export: Download results as Parquet, CSV, or JSONL via Bearer token or X-API-Key.
  • Cache Controls: Admins can clear exact-hash chart caches or reset historical runs with one click.

4. Result Explorer & 6-Stage Explainability DAG (/results/:jobId)

Glass-Box AI
  • Top Split Pane: Filterable Chart List (left) + Multi-Section Chart Viewer (right) with unique color highlights per ICD code.
  • Interactive Hover Isolation: Hover any ICD chip to spotlight its verbatim spans across INDICATION, FINDINGS, IMPRESSION, and DISCHARGE SUMMARY.
  • Bottom Full-Width 6-Stage DAG: Chart → Unique Problems → Attributes → ICD Extraction → Merge/Remover → Final Validation.
  • Dropped Branches (`⊘ END`): Explicitly reveals ruled-out, non-billable, subsumed, or SOP-ignored branches.
  • Tool Usage Details Modal: Inspects exact inputs, candidates, KG edges, validator checks, and MCP responses per step.
Visual Pipeline · 6-Stage Glass-Box Explainability DAG
NODE 01
1. Chart
NODE 02
2. Unique Problems
NODE 03
3. Attributes
NODE 04
4. ICD Extraction
NODE 05
5. Merge / ⊘ Drop
NODE 06
6. Zero-LLM Pass

5. Knowledge Space: Hybrid Search, 3D Embeddings & Clinical KG (/knowledge)

  • Hybrid Search Tester: Compare BM25 lexical, Dense Vector, and RRF Hybrid rankings across 98,479 FY2027 codes.
  • 3D Embedding Space Visualizer: Interactive NumPy SVD PCA projection plotting 2+ clinical phrases as directional arrows with angle arcs (θ°) and pairwise cosine similarity matrix.
  • ICD Knowledge Graph Explorer: 1-hop / 2-hop interactive graph showing parent, children, siblings, excludes1/2, code_first, use_additional, and subsumed_by edges.
  • Live CRUD Overlays: Admins add custom synonyms, local overrides, or HCC flags persisted cleanly in knowledge_entries.

6. Platform Settings (/settings/:section)

  • Appearance: Cookie-backed Dark/Light mode (atreyamd_theme) with zero backend dependency.
  • LLM Profiles (`/settings/llms`): Register multiple endpoints (Bedrock, Azure OpenAI, Vertex, DeepSeek, vLLM, LM Studio), test live, and override per run.
  • Object Storage (`/settings/storage`): Hot-swap Local FS, AWS S3, MinIO, Cloudflare R2, or GCS S3-interop with read/write probes.
  • Tools & MCP (`/settings/tools_mcp`): Configure PHI scrubber, episodic memory, loop step caps, and auto-discover company MCP servers.