How gunasekaransengodan/federal-register-ai-expert-lab works
Federal Register AI Expert Lab is a browser-first regulatory research application. Users inspect a live dataset snapshot, explore specialized analysis modes, and can submit regulatory text for local model synthesis. The documented analysis capabilities extend beyond the sampled implementation, so those branches are included as documented product functions rather than asserted internal pipelines. Source excerpts show the dashboard’s DuckDB calls and the private model’s local inference and persistence; unsampled wiring is omitted.
Main entry points: page.tsx Ten research brains · duckdb-dashboard.tsx Live dashboard · private-llm-panel.tsx Private LLM panel · duckdb.ts DuckDB query runtime
Components 22
Research interface
- Lab interface
app/page.tsx - Live dashboard
components/duckdb-dashboard.tsx - UI primitives
components/ui - Chart components
components/ui/chart.tsx
Structured retrieval
- Federal Register Parquet
- DuckDB query runtime
lib/duckdb.ts - Dataset file index
Analysis capabilities
- Ten research brains
app/page.tsx - Exact SQL
app/page.tsx - Vague-to-exact
app/page.tsx - Knowledge graph
app/page.tsx - Prediction
app/page.tsx - Contradiction checks
app/page.tsx - Agentic workflows
app/page.tsx - Neuro-symbolic rules
app/page.tsx - What-if analysis
app/page.tsx - Cross-source fusion
app/page.tsx
Private synthesis
- Private LLM panel
components/private-llm-panel.tsx - Persistent browser state
lib/use-persistent-state.ts - MLC WebLLM
- Browser WebGPU
Other components
- Researcher
Connections 22
- Researcher → Lab interface: uses
README.md - Lab interface → Live dashboard: renders
app/page.tsx - Lab interface → Private LLM panel: renders
app/page.tsx - Lab interface → Ten research brains: offers
README.md - Ten research brains → Exact SQL: includes
README.md - Ten research brains → Vague-to-exact: includes
README.md - Ten research brains → Knowledge graph: includes
README.md - Ten research brains → Prediction: includes
README.md - Ten research brains → Contradiction checks: includes
README.md - Ten research brains → Agentic workflows: includes
README.md - Ten research brains → Neuro-symbolic rules: includes
README.md - Ten research brains → What-if analysis: includes
README.md - Ten research brains → Cross-source fusion: includes
README.md - Live dashboard → DuckDB query runtime: queries
components/duckdb-dashboard.tsx - Live dashboard → Dataset file index: resolves source
components/duckdb-dashboard.tsx - DuckDB query runtime → Federal Register Parquet: reads Parquet
README.md - Dataset file index → Federal Register Parquet: finds files
- Live dashboard → Chart components: renders charts
components/duckdb-dashboard.tsx - Lab interface → UI primitives: uses primitives
app/page.tsx - Private LLM panel → MLC WebLLM: creates engine
components/private-llm-panel.tsx - Private LLM panel → Browser WebGPU: requests adapter
components/private-llm-panel.tsx - Private LLM panel → Persistent browser state: persists prompt
components/private-llm-panel.tsx