ai-engineering-from-scratch

Learn it. Build it. Ship it for others.

121 articles 10.2k View on GitHub ↗
121 articles
What Agent Memory Architectures Are Taught in AI: 4 Production Patterns Explained

Discover the 4 agent memory architectures taught in AI including hybrid stores tiered blocks virtual contexts and blackboards implemented in Python for production readiness.

deep-dive
Jun 10, 2026
How RAG Is Implemented with Chunking and Reranking in AI-Engineering-From-Scratch

Learn how RAG is implemented with token chunking, TF-IDF indexing, and cosine similarity search. Discover our three-stage retrieval architecture and reranking method.

deep-dive
Jun 10, 2026
Production Patterns for Deploying AI Agents: 10 Enterprise Architectural Blueprints

Discover 10 enterprise architectural blueprints for deploying AI agents in production. Learn production patterns for robust, scalable AI services with layered architectures and safety guardrails.

architecture
Jun 10, 2026
What Are AI Agent Swarm Patterns? Decentralized Multi-Agent Orchestration Explained

Explore AI agent swarm patterns, the decentralized orchestration for homogeneous agents. Learn how direct state exchange enables efficient parallel task completion for optimization and routing.

deep-dive
Jun 10, 2026
How to Handle Multi-Agent Systems in AI: A Production-Ready Architecture Guide

Learn to handle multi-agent systems in AI with a production-ready architecture. Explore layered design, state machines, A2A protocols, and failure auditing for robust agent coordination.

architecture
Jun 10, 2026
Vision Transformer (ViT) Architecture: From Pixels to Patches

Understand the Vision Transformer ViT architecture. Learn how ViT converts images into patch embeddings and uses a transformer encoder for classification. Explore the core concepts.

deep-dive
Jun 10, 2026
How to Implement LLM Quantization for Inference: A Complete Guide

Learn LLM quantization for inference: Shrink models to INT4/INT8 with GPTQ/AWQ for efficient deployment on limited hardware while preserving accuracy. A complete guide for AI engineers on GitHub.

how-to-guide
Jun 10, 2026
How to Implement DPO for LLM Alignment: A Complete Guide from the ai-engineering-from-scratch Repository

Learn to implement Direct Preference Optimization DPO for LLM alignment with this comprehensive guide. Optimize language models directly using human preference pairs. No reward model needed.

how-to-guide
Jun 10, 2026
How to Implement RLHF for LLM Alignment: A Complete Guide from Scratch

Learn how to implement RLHF for LLM alignment with this comprehensive guide. Build a reward model and optimize your LLM using PPO from scratch.

how-to-guide
Jun 10, 2026
How the ReAct Agent Loop Works: Understanding the Reason-Act Pattern

Understand the ReAct agent loop: LLM reasons, acts with tools, observes results. Learn this pattern for efficient AI task completion.

deep-dive
Jun 10, 2026
What Is the Model Context Protocol (MCP) in AI?

Discover the Model Context Protocol (MCP) in AI. Unify LLM tool discovery and execution with this open standard, eliminating integration fragmentation. Learn more.

deep-dive
Jun 10, 2026
AI Engineering from Scratch: The Complete 20-Phase Learning Progression

Master AI Engineering with this 20-phase learning progression. Start with Python and math, advance through ML, DL, LLMs, and tackle multimodal AI and autonomous agents.

getting-started
Jun 10, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →