h9-tec GitHub avatar

ai-system-design

h9-tec

A comprehensive reference guide on AI system design and real-world practices, covering everything from approach selection to production engineering, agents, data ops, and governance, validated against industry sources.

Stars

73

7-day growth

No data

Forks

9

Open issues

0

License

No data

Last updated

2026-07-27

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It synthesizes practitioner wisdom and primary sources (Anthropic, OpenAI, OWASP, etc.) into a practical, structured playbook with checklists, anti-patterns, and failure handling tables—unlike scattered blog posts or academic papers.

Who it is for

  • Software engineers building AI features
  • Tech leads and architects designing AI systems
  • AI/ML practitioners evaluating models and techniques
  • Engineering managers overseeing AI product launches

Use cases

  • Choosing between prompting, RAG, fine-tuning, or agents for a task
  • Designing production-ready retrieval and agent pipelines
  • Conducting design reviews and launch readiness checks
  • Building governance and compliance processes for AI systems

Strengths

  • Evidence-based: claims backed by benchmarks and real production patterns
  • Structured: clear ladders, checklists, and anti-patterns for each topic
  • Practical: includes failure handling tables, metrics, and deployment guidance
  • Comprehensive: covers security, cost, data quality, multilingual, and organizational aspects

Considerations

  • Very lengthy; may overwhelm readers looking for quick answers
  • Static README—no interactive examples or executable code
  • Some references (e.g., OWASP 2025, EU AI Act amendments) may date quickly

README quick start

AI Engineering Reference: System Design and Real-World Practices

A comprehensive reference for engineers, tech leads, and teams who build AI systems: from choosing an approach, through core techniques (prompting, RAG, fine-tuning, agents), to production engineering, data operations, specialized systems, and governance.

This guide started from practitioner discussions (Reddit engineering threads) and was validated and expanded against primary sources: Anthropic and OpenAI engineering guides, the OWASP Top 10 for LLM Applications (2025), the 12-Factor Agents methodology, OpenTelemetry GenAI conventions, academic work on retrieval and long context, and current regulation (EU AI Act as amended by the 2026 Digital Omnibus). Full references at the end.

Principle: treat AI systems as probabilistic distributed systems, not as ordinary API integrations. Design for containment and recovery, not for a model that never fails.

How to use this document: each section stands alone. Skim the contents, read the sections relevant to your current problem, and use the appendices (failure handling, checklist, anti-patterns, metrics) as working documents during design reviews and launches.


Contents

  • Part I. Decisions Before Code
    1. The intervention ladder
    2. API vs self-hosting
    3. Model selection
    4. Build vs buy
  • Part II. Core Techniques 5. Prompt engineering that survives production 6. Structured outputs 7. Context engineering 8. RAG system design 9. Embeddings and vector infrastructure 10. Fine-tuning and model adaptation
  • Part III. Agentic Systems 11. The architecture ladder: workflows vs agents 12. Tools and the agent-computer interface 13. MCP (Model Context Protocol) 14. Agent memory 15. Multi-agent systems 16. Human-in-the-loop
  • Part IV. Production Engineering 17. Reference architecture 18. Core design rules 19. Reliability patterns 20. Security 21. Evaluation strategy 22. Observability 23. Deployment and change management 24. Cost and latency engineering 25. Inference and serving (self-hosted)
  • Part V. Data Engineering 26. Pipelines and dataset management 27. Annotation operations 28. Synthetic data 29. Document processing and OCR
  • Part VI. Specialized Systems 30. Real-time voice AI 31. Multilingual and Arabic-specific notes
  • **Part VII. Product and Organizati

Related repositories

Similar projects matched by category, topics, and programming language.

gnipbao
Featured
gnipbao GitHub avatar

story-to-handdrawn-video

A Remotion-based tool that converts Chinese story text or ordered hand-drawn images into vertical hand-drawn diary-comic animation with handwritten captions, left-to-right reveals, optional page-curl transitions, and silent H.264 output for post-production dubbing.

AI & Machine LearningAI Agents
683
MoonshotAI
Featured
MoonshotAI GitHub avatar

Kimi-K3

Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.

AI & Machine LearningAI Agents
3,348
Krishnagangwal
Featured
Krishnagangwal GitHub avatar

CS-Fundamentals

A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.

Data & DatabasesDatabases & Storage
2,326