Skip to content

dipakkr/ai-engineering-guide

Repository files navigation

🧠 AI Engineering Guide

Designed for software engineers crossing over into AI, this guide focuses on system architecture, deployment patterns, and operational rigor for LLMs, RAG, Prompt Engineering, Agents, and Evals.

📖 Read the live guide here

Demo

GitHub dipakkr Twitter dipakkr_ LinkedIn dipakkr

Updated March 2026 License MIT PRs Welcome

Who This Is For

This guide is for you if:

  • You're a senior software engineer (5+ years) moving into AI/ML engineering
  • You're preparing for system design interviews at AI-focused companies or big tech AI teams
  • You build distributed systems and want to understand how AI components change the design
  • You want to go from "I've used the OpenAI API" to "I can design and defend a production AI system"

This guide is NOT for you if:

  • You're looking for ML theory or math (read Goodfellow's Deep Learning textbook instead)
  • You want paper summaries without practical context
  • You're a researcher who needs academic rigor over engineering pragmatism

Table of Contents

How transformers work, tokenization, context windows, when to fine-tune vs RAG.

CoT, structured generation, prompt optimization, injection defense.

The complete RAG stack: chunking, embeddings, vector DBs, hybrid search, advanced patterns.

ReAct, tool use, MCP, LangGraph, multi-agent systems, memory.

How to actually measure if your system works: RAGAS, LLM-as-judge, production eval.

Observability, guardrails, caching, inference infra, cost optimization.

Interview framework, 5 full case studies, 30 practice problems, 60+ conceptual questions.

Model pricing, glossary, cost formulas, essential papers.

Working implementations: RAG pipeline, LangGraph agent, MCP server, eval pipeline.


Contributing

The guide is intentionally opinionated. If you disagree with a recommendation, open an issue with your reasoning and production evidence. PRs welcome for:

  • Factual errors or outdated information (especially model specs and pricing)
  • Missing failure modes from your production experience

About

A practical guide to AI engineering — LLMs, RAG, agents, evals, and production ops. Built for engineers who ship AI systems.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages