AI systems¶
Architecture guidance for systems that use large language models, agents and machine learning.
Entries are sorted by score from 1 to 10 (criteria): 9โ10 start here or strongly recommended, 6โ8 recommended, 1โ5 further reading or conditional.
Adopted references¶
- 9 Building effective agents (Anthropic): workflow and agent patterns, and when to use each.
- 9 OWASP Top 10 for LLM Applications: the main security risks of LLM-based systems.
- 7 NIST AI Risk Management Framework: governance and risk management for AI systems.
- 7 Emerging Patterns in Building GenAI Products (Thoughtworks via martinfowler.com): patterns such as RAG, evals and guardrails.
- 7 AWS Well-Architected Generative AI Lens: a review checklist for generative AI workloads.
- 7 Rules of Machine Learning (Google): engineering practices for ML systems.
- 7 Model Context Protocol and Agent Skills: open standards for connecting agents to tools and for packaging agent know-how.
Key rules¶
- 9
AI-1Treat model inputs and outputs as untrusted. Defend against prompt injection, and limit tool permissions to avoid excessive agency. (OWASP Top 10 for LLM Applications) - 7
AI-2Start with the simplest solution, such as a single model call with retrieval. Add agentic complexity only when it measurably improves results. (Anthropic, Building effective agents) - 7
AI-3Build evaluations early and run them on every change to prompts, models or tools. (Anthropic, Demystifying evals for AI agents, Thoughtworks, GenAI patterns: evals) - 7
AI-4Use workflows (predefined code paths) for well-defined tasks, and agents only where the model must decide the steps itself. (Anthropic, Building effective agents) - 7
AI-5Design tools specifically for agents, and put as much effort into the agent interface as you would into a human one: clear, distinct names, focused scope and actionable error messages. (Anthropic, Writing effective tools for agents, Building effective agents, appendix 2) - 6
AI-6Treat context as a finite resource and curate what goes into it. (Anthropic, Effective context engineering for AI agents) - 5
AI-7Budget for the hidden technical debt of ML systems: data dependencies, feedback loops and glue code. (Sculley et al., Hidden Technical Debt in Machine Learning Systems) - 5
AI-8Don't be afraid to launch without machine learning. A simple heuristic baseline is a valid first version. (Google, Rules of ML, rule #1)
Tutorials and further reading¶
- 6 Azure Architecture Center: AI architecture design: reference architectures.
- 5 Anthropic skills repository: example Agent Skills.