A production-grade repo blueprint for LLM apps, from API layers to evals
techNmak · x · 2026-10-08
techNmak shares what he calls one of the most useful repository blueprints for production AI applications, organizing everything around the LLM into clear responsibilities:
- api/: request handling, typed schemas, auth, rate limits
- application/: workflows, business rules, budgets, output validation
- providers/: model integrations, deadlines, bounded retries, cancellation
- security/: identity, tenant isolation, access control, tool permissions
- prompts/: templates, input contracts, model config, version references
- observability/: tracing, latency, errors, usage and cost
- evals/: versioned datasets, quality checks, held-out acceptance tests, sampled production evals
- tests/ and deploy/: unit/integration/security/failure-path tests; builds, health checks, safe rollouts
RAG, agents, caching, tool execution, persistence and background workers are organized as separate, use-case-dependent capabilities, so a retrieval-heavy product and an agentic app both fit without forcing one architecture.
Key argument: model calls time out, users request unauthorized data, and prompt/model changes can degrade answer quality without breaking a single unit test — the app itself must handle these, with enough tracing, tests and evals. The repo structure won't make it work by itself, but gives each responsibility a clear home. Start small; add capabilities when the product needs them.
Related event: A Production-Grade Repository Blueprint for LLM Applications(2 posts)→
More from coding & agent
- RSIGym treats recursive self-improvement as systems engineering; Opus 5 leads at 0.4809 — teortaxesTex · 2026-10-08
- Codex Hits 40M Weekly Users, VraserX Predicts It Will Overtake Claude Code Soon — VraserX · 2026-10-08
- Dimillian: If Starting Over, He'd Go Full Native SwiftUI/AppKit for macOS Apps — Dimillian · 2026-10-08
- Local LLM + Tripo3D: A Mini 4WD-Style 3D Racing Game Built in One Day — lxfater · 2026-10-08
- 'You can do a lot, doesn't mean you should': devs slam vibe-coded slob projects — stefanjblos · 2026-10-08
- Hugo Bowne's Hierarchy of Needs for Building Agents That Keep Working Unattended — hugobowne · 2026-10-08