RAG, Agents, Evals, and LLMOps for Product Safety
RecallGraph AI
Built a production-style local AI engineering system: source-shaped CPSC/openFDA/NHTSA fixtures, normalized RecallRecord models, idempotent backfill, SQLite persistence with a Postgres/pgvector path, hybrid retrieval, deterministic multi-agent orchestration, cited risk briefs, eval gates, trace exports, readiness reports, audit trail, recovery drill, and GitHub Actions validation.
Challenge
Product-safety risk data is fragmented across recall agencies, enforcement feeds, complaints, tables, notices, and future PDFs/images. A basic chat wrapper cannot prove source coverage, retrieval quality, citation faithfulness, or operational readiness.
Solution
Built a production-style local AI engineering system: source-shaped CPSC/openFDA/NHTSA fixtures, normalized RecallRecord models, idempotent backfill, SQLite persistence with a Postgres/pgvector path, hybrid retrieval, deterministic multi-agent orchestration, cited risk briefs, eval gates, trace exports, readiness reports, audit trail, recovery drill, and GitHub Actions validation.
Impact Metrics
Results
- • 85-test validation suite passes with only 2 expected optional-dependency skips
- • 4/4 configured public-source fixtures covered across CPSC, openFDA food, openFDA device, and NHTSA
- • 4/4 labeled retrieval cases pass with 1.0 mean recall@k and 1.0 mean reciprocal rank
- • Citation faithfulness gate passes with 0 unsupported controlled risk terms and 0 unlinked source mentions
- • Backfill drill proves safe reruns with 4 records, 8 chunks, 4 raw payloads, and 2 ingestion-run history rows
Business Impact
Demonstrates senior AI engineering depth: not just prompt wiring, but the data contracts, retrieval gates, agent traces, LLMOps artifacts, and production boundaries needed to operate a trustworthy AI workflow.
Architecture
Portfolio project runs locally without credentials, cloud resources, paid model APIs, or live network calls. Hosted auth, tenancy, source completeness, and model-provider integrations remain explicitly deferred.
Interactive Workbench
Explore the fixture-backed analyst console with risk filtering, cited evidence, agent traces, eval gates, and a controlled natural-language panel.
Production-Style AI Engineering Loop
A proven approach combining statistical rigor, automation, and AWS best practices.
Source Contracts
Represent CPSC, openFDA, and NHTSA as source adapters with dry-run URL builders, cached fixtures, freshness checks, and explicit live-network gates.
RAG Baseline
Normalize records into evidence chunks, rank with local hybrid retrieval, and keep pgvector parity available behind an explicit Docker target.
Agent Orchestration
Run a deterministic planner, retriever, evidence verifier, risk scorer, and report writer so the workflow can be tested before adding LLM variance.
Eval + Ops Gates
Gate retrieval quality, answer quality, faithfulness, latency, readiness, audit coverage, recovery, and idempotent ingestion through local validation and CI.
Scale & Scope
Technology Stack
- Python 3.11 package with stdlib-first runtime
- RAG and hybrid retrieval
- Deterministic multi-agent orchestration
- Offline retrieval, answer, and faithfulness evals
- SQLite local repo with Postgres/pgvector migration path
- FastAPI and LangGraph optional adapters
- GitHub Actions validation workflow
- Docker pgvector parity target
Need a similar solution?
Let's replicate this success within your organization with a tailored engagement plan.