ai-engineering-from-scratch
Learn it. Build it. Ship it for others.
Discover the 4 agent memory architectures taught in AI including hybrid stores tiered blocks virtual contexts and blackboards implemented in Python for production readiness.
How RAG Is Implemented with Chunking and Reranking in AI-Engineering-From-ScratchLearn how RAG is implemented with token chunking, TF-IDF indexing, and cosine similarity search. Discover our three-stage retrieval architecture and reranking method.
Production Patterns for Deploying AI Agents: 10 Enterprise Architectural BlueprintsDiscover 10 enterprise architectural blueprints for deploying AI agents in production. Learn production patterns for robust, scalable AI services with layered architectures and safety guardrails.
What Are AI Agent Swarm Patterns? Decentralized Multi-Agent Orchestration ExplainedExplore AI agent swarm patterns, the decentralized orchestration for homogeneous agents. Learn how direct state exchange enables efficient parallel task completion for optimization and routing.
How to Handle Multi-Agent Systems in AI: A Production-Ready Architecture GuideLearn 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.
Vision Transformer (ViT) Architecture: From Pixels to PatchesUnderstand the Vision Transformer ViT architecture. Learn how ViT converts images into patch embeddings and uses a transformer encoder for classification. Explore the core concepts.
How to Implement LLM Quantization for Inference: A Complete GuideLearn 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 Implement DPO for LLM Alignment: A Complete Guide from the ai-engineering-from-scratch RepositoryLearn 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 Implement RLHF for LLM Alignment: A Complete Guide from ScratchLearn how to implement RLHF for LLM alignment with this comprehensive guide. Build a reward model and optimize your LLM using PPO from scratch.
How the ReAct Agent Loop Works: Understanding the Reason-Act PatternUnderstand the ReAct agent loop: LLM reasons, acts with tools, observes results. Learn this pattern for efficient AI task completion.
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.
AI Engineering from Scratch: The Complete 20-Phase Learning ProgressionMaster 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.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →