All roadmaps

AI Engineer Roadmap 2026

Build products on top of large language models: LLM APIs, prompt engineering, embeddings and vector databases, RAG, AI agents, evals, open models and shipping to production. For freshers and developers in India who want an AI engineer job without a research degree.

32 weeks10 stages94 topicsBeginner to advancedINR 6,00,000–30,00,000Updated October 2026

Share onWhatsAppLinkedInXReddit

Track your progress. Sign in to mark topics as learning, done or skipped, and pick up where you left off on any device.

StageMust learnShould learnNice to knowDoneTap a topic or a stage for details and free resources.
  1. Start here
  • Agents are moving from demos to production, and MCP is becoming the standard way to give a model tools
  • Reasoning models (OpenAI o-series, Claude with extended thinking, Gemini thinking) change how prompts and evals are written
  • Small open models such as Llama, Qwen and Gemma now run on a laptop, so local and on-device AI is a real option
  • Evals and tracing are a hiring requirement: teams want proof a feature works, not a demo
  • Voice and multimodal interfaces are the next surface, especially for users who do not type in English
  • Token prices keep falling while usage grows, so cost design decides which products survive
  • AI coding tools (Cursor, Copilot, Claude Code) are part of the job, not a shortcut around it
  • Indic language models from Sarvam and AI4Bharat open products for Hindi, Tamil, Bengali and more

Job market

Openings, growth and the companies hiring

Open Positions

0+

Active job listings globally

Growth Rate

35%

Much faster than average

Bureau of Labor Statistics

Top Companies

GoogleMicrosoftAmazonOpenAIAnthropicFlipkartSwiggyZoho
8 actively hiring teams

After this roadmap

Advanced topics to explore

  • Training and fine-tuning at scale (the ML Engineer roadmap)
  • Serving models on GPU clusters with vLLM
  • Writing your own agent runtime
  • Multi-agent systems and orchestration
  • AI security research: jailbreaks, data poisoning, model theft
  • On-device and edge inference
  • Reading papers each week: arXiv cs.CL and cs.AI
  • Contributing to open source AI tooling

The AI Engineer roadmap, step by step

10 stages and 94 topics, about 32 weeks in all. It starts at beginner level with Foundations for AI Engineering and ends at advanced level with Shipping AI Products. It prepares you for roles such as AI Engineer, GenAI Engineer, LLM Application Developer.

  1. Stage 1: Foundations for AI Engineering

    4 weeks, Beginner, 9 topics

    What an AI engineer does, the Python and API skills the job runs on, and how large language models work well enough to use them properly

    • What an AI Engineer DoesThe job in 2026: building features and products on top of pre-trained models, not training models from scratch. How it differs from ML engineering and data science, and what interviews for it ask.
      • An AI engineer works above the model: prompts, retrieval, tools, evals and the product around them; an ML engineer works on training and serving the model itself
      • Most AI engineer jobs in India ask for Python, one LLM API, RAG and a shipped project, not a PhD or a paper
      • The role grew out of software engineering, so backend and web skills carry over directly
    • Python for LLM AppsThe Python an AI engineer uses daily: virtual environments, type hints, dataclasses and Pydantic models, async and await, and reading JSON from APIs.
      • Pydantic models validate the JSON a model returns, so a malformed reply fails loudly instead of corrupting data downstream
      • Async code lets one process wait on many slow model calls at once, which is how chat backends stay responsive
      • A virtual environment (venv or uv) per project keeps the fast-moving AI libraries from breaking each other
    • APIs, HTTP and JSONHow to call a web API properly: authentication headers, request and response bodies, status codes, rate limits, timeouts and retries with backoff.
      • Every LLM provider is an HTTP API; the SDKs only wrap the same POST request, so knowing HTTP lets you debug any of them
      • A 429 means slow down, a 5xx means retry with backoff, a 400 means fix the request; treating them the same wastes money and time
      • Timeouts are not optional: a model call can take 30 seconds, and a request without one can hang a server
    • Git and the TerminalVersion control and the command line, enough to work on a team: branches, commits, pull requests, and keeping secrets out of the repository.
      • An API key committed to Git is public forever, even after deletion; keys live in environment variables and a .env file that is ignored
      • Small commits with clear messages make prompt changes reviewable, and prompts change as often as code
      • Most AI tooling is installed and run from the terminal, so comfort there removes a daily source of friction
    • How LLMs WorkWhat a large language model is doing when it answers: tokens, next-token prediction, the context window, pre-training versus fine-tuning, and why it can be confidently wrong.
      • A model predicts the next token from everything in its context window; it has no memory outside that window unless you give it one
      • Hallucination is the model doing its job, producing plausible text, when it lacks the facts; retrieval and grounding reduce it, prompts alone do not
      • Pre-training teaches language and world knowledge; instruction tuning and RLHF teach the model to follow directions and refuse
    • Tokens, Context Windows and SamplingThe numbers that govern every call: how text becomes tokens, what the context window limits, and what temperature, top-p and max tokens actually change.
      • Roughly four characters of English make one token, but Hindi, Tamil and code tokenize far less efficiently, which raises cost and eats context
      • Temperature 0 makes output nearly deterministic for extraction tasks; higher values add variety for writing tasks
      • Max tokens caps the reply, not the request; a reply cut off mid-JSON is a common bug that a low limit causes
    • Transformers in Plain Words(recommended)A working mental model of the architecture behind modern models: embeddings, attention, layers and why scale matters, without the training mathematics.
      • Attention lets every token look at every other token in the context, which is why long documents cost more than their length suggests
      • The same architecture underlies text, code, image and audio models, so one mental model covers all of them
      • You do not need to implement a transformer to build with one, but knowing the shape explains limits like context length and latency
    • The Math You Actually Need(recommended)Vectors, dot products and cosine similarity for embeddings, basic probability for sampling, and reading a chart of eval results. That is most of it.
      • Cosine similarity between two embedding vectors is the whole basis of semantic search, so understand it on paper once
      • Model outputs are probability distributions over tokens; temperature reshapes that distribution, which is why it changes behaviour
      • Reading precision, recall and a confusion matrix is enough statistics to judge most eval results
    • TypeScript for AI Apps(optional)Many AI products are web apps. The official SDKs and the Vercel AI SDK make TypeScript a first-class option for the API layer and streaming UIs.
      • OpenAI, Anthropic and Google ship official TypeScript SDKs with the same features as Python
      • Streaming a reply token by token into a React page is simplest with the AI SDK's hooks
      • Frontend developers moving into AI can keep their stack and add the model layer in TypeScript

    Projects for this stage

    • Command-line chatbot: A terminal chat app that calls one LLM API, keeps the conversation history, streams the reply and reads its key from an environment variable
    • Token budget tool: A script that counts the tokens in a file with tiktoken, estimates the cost on three models and warns when the text will not fit the context window
  2. Stage 2: Pre-trained Models and LLM APIs

    3 weeks, Beginner, 10 topics

    Choose a model and call it well: the model landscape, the OpenAI, Claude and Gemini APIs, streaming, structured output, and the token and cost limits that shape a design

    • The Model LandscapeWho makes the models you will use: OpenAI's GPT series, Anthropic's Claude, Google's Gemini, and open-weight families such as Llama, Mistral, Qwen, Gemma and DeepSeek.
      • Closed models from OpenAI, Anthropic and Google lead on capability; open-weight models from Meta, Mistral, Alibaba and DeepSeek can be run and fine-tuned yourself
      • Leaderboards change monthly, so learn to read them rather than memorising which model is best
      • Every provider offers a small, cheap model and a large, expensive one; most product features run on the small one
    • Choosing a ModelThe four questions for any task: is it capable enough, does the input fit the context window, what does it cost per call, and how fast must the reply be.
      • Start with the strongest model to prove the feature works, then move to the cheapest model that passes your evals
      • Context length matters only if you fill it; a million-token window does not make long prompts cheap or fast
      • A model's knowledge cutoff is a date; anything after it must come from retrieval or tools
    • OpenAI APIThe most common API in job postings: the Python SDK, the Responses and Chat Completions endpoints, system and user messages, and reading usage from the response.
      • A request is a list of messages with roles; the system message sets behaviour and the model replies to the last user turn
      • The response carries token usage, which you should log from the first day to know what a feature costs
      • The SDK handles retries and auth, but the same request can be made with plain HTTP from any language
    • Claude APIAnthropic's Messages API: system prompts, multi-turn messages, tool use, prompt caching and extended thinking, through the Python or TypeScript SDK.
      • The system prompt is a separate parameter, not a message, which keeps instructions apart from the conversation
      • Prompt caching cuts the cost of a long, repeated system prompt, which matters for RAG and agent loops
      • Extended thinking gives the model a scratchpad for hard problems at the price of more tokens and time
    • Gemini API(recommended)Google's models through AI Studio and the Gemini API: long context, native multimodal input, grounding with Google Search, and a free tier for learning.
      • The free tier lets a student build and test real features without a credit card, which the other providers do not offer
      • Gemini accepts images, audio, video and PDFs directly in a request, so document tasks need no separate pipeline
      • Long context (a million tokens) suits whole-codebase or whole-book questions where retrieval would lose detail
    • Streaming ResponsesReceive the reply token by token over server-sent events so the user sees text immediately, and handle partial output, cancellation and errors mid-stream.
      • Time to first token, not total time, is what users feel; streaming turns a ten-second wait into a reply that starts in under a second
      • A streamed reply arrives as deltas you must concatenate; JSON cannot be parsed until the stream ends
      • Pass the stream through your backend to the browser; never expose the provider key to the client
    • Structured Outputs and JSON ModeMake the model return data your code can trust: JSON schema enforcement, Pydantic or Zod schemas, enums for classification, and handling refusals and empty fields.
      • Schema-enforced output removes the whole class of bugs where the model adds a sentence before the JSON
      • Extraction, classification and routing are structured-output problems; treat them as functions with typed returns
      • Validate anyway: a schema guarantees shape, not truth, so a confidence field or a second check catches bad values
    • Tokens, Pricing and Rate LimitsCount tokens before sending, estimate cost per request and per month, read rate-limit headers, and use batch endpoints for work that can wait.
      • Input and output tokens are priced differently, and output is usually several times dearer, so verbose replies cost real money
      • Rate limits are per minute and per day per key; a launch without back-off and queueing fails at the first spike
      • Batch APIs run large jobs at a discount with a delay, which fits nightly enrichment and evaluation runs
    • Playgrounds and Prompt Iteration(recommended)Use the provider consoles to iterate on a prompt with real inputs before writing code: the OpenAI Playground, the Claude Console and Google AI Studio.
      • Ten minutes in a playground with five real inputs finds problems that an hour of code would hide
      • Save the winning prompt and the inputs you tested; they become your first eval set
      • The consoles show token counts and cost per run, which builds an instinct for what prompts cost
    • Model Gateways and Routing(optional)One interface over many providers: LiteLLM, OpenRouter and the Vercel AI SDK, with fallbacks when a provider is down and routing of cheap tasks to cheap models.
      • A gateway lets you switch models with a config change, which protects a product from price and outage surprises
      • Routing by task sends classification to a small model and reasoning to a large one, often halving cost
      • Fallbacks across providers are the simplest way to keep an AI feature up during an outage

    Projects for this stage

    • Multi-provider chat: One chat backend with a provider switch for OpenAI, Claude and Gemini, streaming replies, and a log of tokens and cost per message
    • Structured extractor: A tool that turns messy job postings or invoices into validated JSON with a Pydantic schema and structured output, tested on 20 real examples
  3. Stage 3: Prompt Engineering

    3 weeks, Beginner, 9 topics

    Write prompts that work on real inputs, not just the demo: clear instructions, examples, reasoning, chaining, caching, and versioning prompts like code

    • Anatomy of a Good PromptThe parts that make a prompt reliable: a role, the task in one sentence, the context it needs, explicit constraints, and the exact output format.
      • Most bad outputs come from missing context or an unstated format, not from the model being weak
      • Put instructions first, data last, and label the data (triple quotes or XML tags) so the model cannot confuse the two
      • State what to do when the task is impossible, or the model will invent an answer
    • System Prompts and Instruction HierarchyWhat belongs in the system prompt, how user and tool messages rank against it, and why a system prompt is not a security boundary.
      • The system prompt sets identity, scope, tone and rules; the user turn carries the request; tool results are data
      • Models try to follow the hierarchy but can be talked out of it, so anything that must hold is enforced in code
      • Keep the system prompt stable and cacheable; put per-request detail in the user message
    • Few-Shot PromptingShow the model examples of input and ideal output instead of describing the format, and choose examples that cover the edge cases.
      • Three to five well-chosen examples beat a long description for format and tone
      • Examples teach by pattern, so an example with a mistake teaches the mistake
      • Examples cost tokens on every call; once the output is stable, try removing them and check the evals
    • Chain of Thought and Reasoning ModelsAsk the model to work step by step, and know when to use a reasoning model (OpenAI o-series, Claude extended thinking, Gemini thinking) that does so on its own.
      • Step-by-step reasoning helps on maths, logic and multi-constraint tasks, and does nothing for simple extraction
      • Reasoning models spend tokens thinking before answering, so they cost more and are slower; use them where it pays
      • Hide the reasoning from users when it is not the product, and never parse it as if it were the answer
    • Output Formatting and Templates(recommended)Prompt templates with variables, markdown and XML tags for structure, and keeping long prompts readable in code with a template file or a library.
      • A prompt with variables is code: keep it in a file, name the variables, and never build it by string concatenation in five places
      • XML-style tags around sections (instructions, document, examples) help the model and make the prompt diffable
      • Ask for the final answer in a fixed place or format so parsing never depends on prose
    • Prompt Chaining and DecompositionBreak a hard task into steps with one prompt each: extract, then reason, then write, then check. Each step is cheaper, testable and easier to fix.
      • A chain of small prompts is more reliable than one large prompt, because each step can be tested and swapped
      • Gate steps with code: validate step one's JSON before step two runs
      • Chains add latency; run independent steps in parallel and stream the last one
    • Prompt Caching(recommended)Reuse the processed prefix of a long prompt across calls so a big system prompt, document or tool list is paid for once, not on every request.
      • Caching only works on an identical prefix, so put the stable parts first and the changing parts last
      • On a RAG or agent workload, caching can cut input cost by most of the bill
      • Caches expire in minutes; design the request order so hot prompts stay warm
    • Prompt Versioning and Management(recommended)Treat prompts as code: version them, log which version produced each output, and roll back when a change hurts quality.
      • A prompt edit is a deploy; without a version in the logs you cannot tell which change caused a regression
      • Run the eval set on every prompt change, the same way tests run on every code change
      • Keep prompts near the code that calls them, or in a prompt manager with history; never only in a chat window
    • Common Prompt FailuresRecognise the usual failures: hallucinated facts, ignored constraints, verbosity, format drift, sycophancy and losing instructions in long contexts, and the fix for each.
      • Give the model permission to say it does not know, and provide the facts it needs; that removes most hallucination
      • Instructions in the middle of a very long prompt are followed less reliably than those at the start or end
      • If the output is too long, set a length rule and a format rather than asking for brevity

    Projects for this stage

    • Prompt library with tests: A repository of five production-style prompts (summarise, classify, extract, rewrite, answer), each with ten test inputs and a script that scores the output
    • Support reply drafter: A tool that drafts a customer support reply from a ticket and company policy text, with tone rules, a refusal path and a few-shot set of good replies
  4. Stage 4: Embeddings and Vector Databases

    3 weeks, Intermediate, 10 topics

    Turn text into vectors and search by meaning: embedding models, similarity, vector databases from Chroma to pgvector, indexing, and hybrid search with reranking

    • What Embeddings AreA vector of numbers that places a piece of text in a space where similar meanings sit close together, produced by an embedding model, and what it can and cannot capture.
      • Two texts with similar meaning get vectors that point the same way, so meaning becomes measurable with arithmetic
      • Embeddings compare meaning, not exact words; a product code or a name is often matched better by keyword search
      • A vector only means something relative to the model that made it; never mix vectors from two models in one index
    • Embedding ModelsHosted models (OpenAI text-embedding-3, Gemini, Cohere, Voyage) against open ones (BGE, E5, nomic, sentence-transformers), and how to pick by the MTEB benchmark, size, languages and cost.
      • Small open models embed millions of documents for free on a laptop; hosted models are simpler and slightly stronger
      • Check multilingual scores if your users write in Hindi or Hinglish; many English-first models degrade badly
      • Dimensions trade accuracy for storage; 384 to 1024 covers most products, and some models let you shorten vectors
    • Semantic SearchEmbed the query, compare it with stored vectors, and return the top matches. The core loop of RAG, recommendations and smart search, in 30 lines before any framework.
      • Build it once with NumPy and a list of vectors; everything a vector database adds is scale and filters on top of that loop
      • Queries and documents are different shapes of text; some models expect a prefix or instruction on the query side
      • Return the score with each result and look at the distribution; a cutoff is better than a fixed top-k when nothing matches
    • Similarity MetricsCosine similarity, dot product and Euclidean distance: what each measures, why normalised vectors make them agree, and which one your model and database expect.
      • Cosine compares direction and ignores length, which is why it is the default for text embeddings
      • With unit-length vectors, dot product equals cosine and is faster, so most databases normalise on insert
      • Using the wrong metric for a model quietly ranks results wrongly without any error
    • Vector Databases: When and WhyWhat a vector database adds over a list of vectors: approximate nearest-neighbour indexes, metadata filters, updates, persistence and scale, and when a plain database is enough.
      • Under a few hundred thousand vectors, brute force in memory or pgvector is fine; a dedicated database earns its place at scale or with heavy filtering
      • Metadata filters (tenant, date, type) are used in nearly every real query, so test them before choosing a database
      • Vectors must be re-embedded when the model changes, so store the source text and the model name beside each vector
    • Chroma and FAISSLocal-first tools for learning and small products: Chroma as an embedded database with a simple API, and FAISS as the fast library for similarity search in memory.
      • Chroma runs inside your Python process with persistence to disk, which makes it the quickest way to build a first RAG app
      • FAISS is a library, not a server: it searches millions of vectors fast but you manage storage and metadata yourself
      • Both are good enough to ship a small product; move only when a real limit appears
    • Hosted Vector Databases(recommended)Managed and server options for production: Pinecone, Qdrant, Weaviate and Milvus, compared on filtering, hybrid search, cost, self-hosting and operational load.
      • Qdrant, Weaviate and Milvus can be self-hosted with Docker, which keeps data in your own cloud account
      • Pricing is by vectors stored and queries made; estimate both before choosing, since re-embedding doubles writes
      • Pick one and learn its filtering and hybrid features deeply rather than touring all four
    • pgvector and Existing Databases(recommended)Add vectors to the database you already run: pgvector in Postgres (and Supabase, Neon), MongoDB Atlas vector search, and Elasticsearch or OpenSearch kNN.
      • One database for rows and vectors means joins, transactions and permissions work on embeddings too
      • pgvector with an HNSW index handles millions of vectors, which covers most startups
      • Teams in India often run on Postgres already, so pgvector is the lowest-friction path to a RAG feature
    • Indexing: HNSW, IVF and Quantization(recommended)How approximate nearest-neighbour search makes vector search fast: HNSW graphs, IVF clusters, product and scalar quantization, and the recall you give up for speed.
      • Exact search is linear in the number of vectors; an index makes it near-constant at the cost of occasionally missing a neighbour
      • HNSW is the default in most databases: fast queries, high recall, more memory
      • Quantization shrinks vectors four to thirty times, which decides whether an index fits in RAM
    • Hybrid Search and Reranking(recommended)Combine keyword search (BM25) with vector search, merge the lists with reciprocal rank fusion, then rerank the top results with a cross-encoder or a rerank API.
      • Keywords catch names, codes and rare words that embeddings blur; vectors catch paraphrases; together they beat either alone
      • A reranker reads the query and each candidate together, so it is accurate but slow; apply it to the top 20 to 50 only
      • Measure recall on a labelled set before and after; hybrid and rerank often raise it by a large margin

    Projects for this stage

    • Semantic search over your notes: Embed a folder of markdown or PDF notes, store them in Chroma, and build a search box that returns passages by meaning with the source file and score
    • Similar jobs recommender: Embed job postings from a board and show the five most similar postings for any job, with a hybrid keyword plus vector mode to compare results
  5. Stage 5: Retrieval-Augmented Generation

    4 weeks, Intermediate, 11 topics

    Give the model your documents at question time: loading and chunking, the retrieve-then-generate pipeline, query rewriting, advanced retrieval, LangChain and LlamaIndex, and measuring whether answers are grounded

    • Why RAGModels have a knowledge cutoff, know nothing private and cannot cite. Retrieval fixes all three by putting the right text in the context at question time.
      • RAG is retrieval first, generation second: the quality of the answer is capped by the quality of what was retrieved
      • It lets you update knowledge by changing documents, not by retraining a model
      • Citations become possible because the model is answering from text you can show
    • RAG vs Fine-Tuning vs Long ContextThree ways to get knowledge into a model and what each is for: retrieval for facts that change, fine-tuning for style and format, long context for a few documents at a time.
      • Fine-tuning does not reliably teach facts; it teaches behaviour, so it is the wrong tool for a knowledge base
      • Stuffing a long context is simplest for a few documents but costs more per call and degrades on very long inputs
      • Most products end up with retrieval plus a well-prompted base model, and fine-tune only when evals prove the need
    • Document Loading and ParsingGet clean text out of PDFs, Word files, HTML, slides and scans: parsers such as PyMuPDF, Unstructured and Docling, tables and layout, and OCR for scanned pages.
      • Bad parsing is the most common cause of bad RAG answers; look at the extracted text before blaming the model
      • Tables, headers and footers need special handling or they pollute chunks with noise
      • Keep the source, page number and section with every piece of text; citations depend on it
    • Chunking StrategiesSplit documents into pieces that retrieve well: fixed-size with overlap, sentence and paragraph splits, structure-aware splits by heading, and chunk sizes tuned on your own data.
      • Chunks too small lose context, chunks too large dilute the match; 200 to 800 tokens is the usual range to test from
      • Splitting on document structure (headings, sections) beats splitting on character counts for manuals and policies
      • Attach the document title and section heading to each chunk so a chunk still makes sense alone
    • The RAG PipelineBuild the full loop without a framework: embed and store chunks, embed the question, retrieve the top chunks, build the prompt with them, generate, and return the answer with sources.
      • Write it once in under a hundred lines of plain Python; then every framework is a wrapper you can read through
      • The prompt must tell the model to answer only from the given passages and to say when they do not contain the answer
      • Log the retrieved chunks with every answer; most debugging is looking at what was retrieved
    • Query Transformation(recommended)Improve retrieval by changing the question: rewriting vague queries, generating multiple queries, HyDE (embedding a hypothetical answer), and routing between indexes.
      • Users type short, messy questions; a rewrite step turns them into the kind of text that matches chunks
      • Multi-query retrieval casts a wider net and is cheap compared with a wrong answer
      • Conversation history must be folded into the query, or follow-up questions retrieve nothing useful
    • Advanced Retrieval(recommended)Beyond top-k: reranking, parent-document and sentence-window retrieval, metadata filtering, contextual chunk headers, and GraphRAG for questions that span many documents.
      • Retrieve small chunks for precision but hand the model the larger parent passage for context
      • Prepending a short, model-written note on where a chunk sits in its document raises retrieval accuracy noticeably
      • GraphRAG and similar methods help with summarise-everything-about-X questions that plain similarity search cannot answer
    • LangChain and LangGraph(recommended)The most widely used framework for chaining models, retrievers and tools, and LangGraph for stateful, branching flows. Learn what it abstracts so you can drop below it when needed.
      • LangChain gives integrations for hundreds of models, loaders and vector stores, which saves days on a prototype
      • Its abstractions can hide what is sent to the model; always inspect the final prompt with tracing on
      • Job postings name it often, so know it well enough to read a codebase that uses it, even if you build without it
    • LlamaIndex(recommended)A framework built around indexing and querying your data: document loaders, node parsers, indexes, query engines and agents over documents, with strong defaults for RAG.
      • The defaults for chunking, indexing and querying are a good baseline to measure your own pipeline against
      • Its node and metadata model keeps source, page and section attached, which makes citations straightforward
      • Choose one of LangChain or LlamaIndex for a project; mixing both adds confusion without benefit
    • Evaluating RAGMeasure retrieval (recall, precision, MRR on a labelled set) and generation (faithfulness, answer relevance) separately, with RAGAS or your own LLM-judged checks.
      • If retrieval recall is low, no prompt will fix the answers; evaluate retrieval on its own first
      • Faithfulness asks whether every claim in the answer is supported by the retrieved text; it is the metric that catches hallucination
      • Fifty real questions with known answers, kept in the repo, are worth more than any benchmark
    • Citations and Grounding(recommended)Make answers verifiable: ask for quotes or chunk ids, show sources in the UI, use provider citation features, and refuse when the sources do not support an answer.
      • A citation the user can click turns an AI answer from a claim into a lead they can check
      • Ask the model to quote the supporting sentence before answering; it reduces unsupported claims
      • An honest 'not in the documents' is a feature; design and test for it

    Projects for this stage

    • Chat with your documents, with citations: Upload PDFs, chunk and embed them, answer questions with quoted sources, and show which chunk each sentence came from
    • Company policy assistant: A bot over an HR or college handbook that answers only from the handbook, refuses out-of-scope questions, and has a 30-question eval set with faithfulness scores
  6. Stage 6: AI Agents and Tool Use

    4 weeks, Intermediate, 11 topics

    Let the model act: function calling, the agent loop, MCP for connecting tools, frameworks, memory, planning, human approval, and the engineering that keeps agents reliable

    • What an Agent IsA loop in which the model decides what to do next, calls tools, reads the results and continues until the task is done. The difference between a workflow and an agent, and when each is right.
      • A workflow follows steps you wrote; an agent chooses its steps. Use a workflow whenever you can predict the steps
      • Autonomy costs tokens, time and predictability, so give it only where the task truly varies
      • Every agent is still a loop of model calls; nothing magic happens between them
    • Function Calling and Tool UseDescribe functions to the model with a name, description and JSON schema; the model returns a call, your code runs it, and the result goes back. The foundation of every agent.
      • The model never runs code; it emits a structured request and your program decides whether to execute it
      • Tool descriptions are prompts: a clear description with examples is the difference between a tool being used well and ignored
      • Validate arguments with the schema before executing; models mistype and invent parameters
    • The ReAct PatternReason, act, observe, repeat: the pattern from the ReAct paper that most agents still follow, and why interleaving thinking with tool results works better than planning everything up front.
      • Observing a tool result before the next decision lets the agent recover from a wrong turn
      • Modern tool-use APIs implement ReAct natively, so you rarely write the Thought and Action format by hand any more
      • Keep the loop's history compact; long tool outputs should be summarised or truncated before going back in
    • Build an Agent Loop by HandWrite the loop yourself in 80 lines: send messages and tools, check for tool calls, execute them, append results, stop on a final answer or a step limit. Do this before adopting a framework.
      • Once you have written the loop, every framework's magic is readable, and you can debug any of them
      • A maximum number of steps and a maximum spend are the first two lines of a safe agent
      • Log every model call and tool call with inputs and outputs; agents fail in ways you can only see in the trace
    • Model Context Protocol (MCP)An open standard for connecting models to tools and data: MCP servers expose tools, resources and prompts, and any MCP client (Claude, IDEs, your own agent) can use them.
      • Write a tool once as an MCP server and every MCP-capable client can call it, instead of one integration per agent
      • Servers are small programs over stdio or HTTP; the Python and TypeScript SDKs make a first one an afternoon's work
      • Treat a third-party MCP server as untrusted code with access to your data; read what it does before connecting it
    • Agent Frameworks(recommended)What the frameworks give you and cost you: LangGraph, the OpenAI Agents SDK, the Claude Agent SDK, Google's ADK, CrewAI and Pydantic AI, chosen by how much control you need.
      • Frameworks handle the loop, tool schemas, retries and tracing; they do not make a bad task definition work
      • Graph-based frameworks such as LangGraph suit flows with branches and checkpoints; SDK-style ones suit a single agent with tools
      • Choose by how easily you can read the final prompts and swap the model, not by the demo
    • Memory for Agents(recommended)Short-term memory is the context window; long-term memory is what you store and retrieve: conversation summaries, user facts, past results, often through the same embeddings and databases as RAG.
      • Summarise old turns instead of dropping them, or the agent forgets the goal halfway through a long task
      • Store facts about the user with their consent and let them see and delete them
      • Memory is retrieval: the same chunking and search quality questions apply
    • Planning and Multi-Step Tasks(recommended)Have the model write a plan, execute step by step, re-plan on failure, and use sub-agents for parallel work. Patterns: orchestrator and workers, evaluator and optimizer, routing.
      • A written plan the user can see makes a long task predictable and gives you a place to intervene
      • Parallel sub-agents cut wall-clock time on independent sub-tasks, at the price of more tokens
      • An evaluator step that checks the result against the task catches most failed runs before the user sees them
    • Human in the Loop and ApprovalsDecide which actions need a person: read-only tools run freely, writes and payments pause for approval, and the agent explains what it wants to do and why.
      • Classify every tool as safe, needs approval or forbidden before the agent ever sees it
      • An approval step is a product feature: show the proposed action in plain words with an undo where possible
      • Logs of what was approved and by whom are what you will need when something goes wrong
    • Agent ReliabilityMake agents dependable: idempotent tools, timeouts, retries with limits, sandboxed code execution, structured errors the model can read, and tests that replay recorded traces.
      • Return errors to the model as data it can act on (order not found) rather than crashing the loop
      • Run model-written code in a sandbox with no network and a time limit; never in your server process
      • Record real traces and replay them as tests, so a prompt change cannot silently break a working flow
    • Computer Use and Browser Agents(optional)Agents that see a screen and click: computer-use models and browser automation with Playwright, what they can do today, where they fail, and the safety rules they need.
      • Screen-driven agents are slow and brittle compared with an API; use them only where no API exists
      • Prompt injection through web pages is the main risk: text on a page can instruct the agent
      • Confirm with a person before anything irreversible: a purchase, a message, a deletion

    Projects for this stage

    • Research agent: An agent that answers a question by searching the web, reading pages and writing a sourced summary, with a step limit, a cost cap and a trace of every tool call
    • Support agent with approvals: An agent over a ticketing API that drafts replies, looks up orders through tools, and asks a human to approve any refund or account change
  7. Stage 7: Multimodal AI

    2 weeks, Intermediate, 6 topics

    Work with more than text: images in and out, speech to text and text to speech, documents and video, realtime voice agents, and products for India's many languages

    • Image UnderstandingSend images to GPT, Claude or Gemini for description, question answering, OCR and extraction, with the prompting and resolution choices that affect accuracy and cost.
      • Images are billed in tokens by size; resize before sending and crop to the region that matters
      • Ask for structured output from an image the same way as from text; the schema keeps extraction honest
      • Models read text and layout well but count and measure poorly; verify numbers in code
    • Image Generation(recommended)Generate and edit images with hosted models (OpenAI, Imagen) and open ones (Stable Diffusion, Flux) through Diffusers: prompting for images, editing with masks, and the licensing questions.
      • Hosted APIs are simplest; open models through Diffusers give control and run on your own GPU
      • Reference images and masks make editing predictable where text prompts alone drift
      • Check the model licence and the provider policy before using generated images commercially
    • Speech to Text and Text to SpeechTranscribe audio with Whisper or hosted transcription APIs, generate natural speech, handle accents and Indian languages, and keep latency low enough for conversation.
      • Whisper runs locally and handles dozens of languages, including Hindi, which makes it a free baseline to compare APIs against
      • Streaming transcription and streaming speech are what make a voice assistant feel live
      • Test on real recordings with background noise and code-switching between Hindi and English, not studio clips
    • Documents, Video and Audio Understanding(recommended)Hand whole PDFs, videos and audio files to long-context multimodal models such as Gemini, ask questions across them, and know when a dedicated parser is still better.
      • A model that reads the PDF as pages keeps tables and figures that text extraction loses
      • Video is costly in tokens; sample frames or clip the relevant part before asking
      • For thousands of documents, parse and index; for a few, send them whole
    • Realtime Voice Agents(optional)Speech-to-speech models and realtime APIs that listen and talk with sub-second latency, handle interruptions, and call tools mid-conversation, for phone and in-app assistants.
      • Realtime models skip the transcribe-think-speak chain, which is what makes interruption and natural turn-taking possible
      • Voice costs more per minute than text per message; price the feature before promising it
      • Telephony integration (SIP, WebRTC) is its own engineering problem beyond the model
    • Building for Indian Languages(recommended)Hindi, Hinglish and regional languages in prompts, embeddings and speech: Indic models from Sarvam and AI4Bharat, Bhashini, transliteration, and evaluating in the user's own language.
      • Indian scripts take several times more tokens than English, which raises cost and shrinks the usable context
      • Many users type Hinglish in Latin script; test prompts and embeddings on it, not on textbook Hindi
      • Voice is the first interface for many Indian users, so speech quality in regional languages decides adoption

    Projects for this stage

    • Receipt and invoice extractor: Photograph a bill, extract vendor, items, GST and total as JSON with a vision model, and validate the totals in code
    • Voice Q&A in Hindi: Record a question, transcribe it, answer from a small knowledge base, and read the answer back, measuring the end-to-end latency
  8. Stage 8: Evaluation, Observability and Safety

    3 weeks, Advanced, 10 topics

    Prove it works and keep it safe: eval sets, LLM judges, tracing in production, prompt injection and the OWASP risks, guardrails, privacy, and red-teaming your own app

    • Why Evals MatterVibes do not scale: an eval set turns it-seems-better into a number, catches regressions, and is what employers ask about when you say a feature works.
      • Without evals, every prompt change is a gamble, and the model upgrade you were waiting for may make things worse
      • Start with 20 real examples and a pass or fail rule; sophistication can come later
      • Interviewers for AI roles now ask how you measured quality; have an answer with numbers
    • Building an Eval SetCollect real inputs, write expected outputs or rubrics, cover edge cases and failures, label with the people who know the domain, and keep the set growing from production logs.
      • Real user inputs beat invented ones; mine logs, support tickets and search queries
      • Include the cases that should be refused or answered with an honest I-do-not-know
      • A rubric (what a good answer must contain) is easier to maintain than a single golden answer
    • LLM as a JudgeUse a strong model to grade outputs against a rubric or a reference, calibrate it against human labels, and know its biases: length, position and self-preference.
      • A judge is cheap and fast but must be checked against a sample of human grades before you trust it
      • Pairwise comparison (which of two answers is better) is more reliable than absolute scores
      • Judges prefer longer and more confident answers; counter that in the rubric
    • Eval Tools(recommended)Tools that run eval sets and compare versions: promptfoo, OpenAI Evals, Braintrust, DeepEval and Ragas, and wiring one into CI so a regression blocks a deploy.
      • A YAML file of prompts, inputs and assertions that runs in CI is enough for most teams
      • Compare models and prompts side by side on the same set; that is how you justify a cheaper model
      • Store eval results with the prompt version so you can see quality over time
    • Tracing and ObservabilityRecord every model call in production with inputs, outputs, tokens, cost, latency and the user session, using LangSmith, Langfuse or OpenTelemetry, and review traces weekly.
      • A trace shows the exact prompt the model saw, which is where most production bugs are found
      • Cost per user and per feature comes from traces; without them the bill is a surprise
      • Reading a sample of real traces each week is the fastest way to find what to improve next
    • Prompt Injection and JailbreaksUntrusted text (a web page, an email, a document) can carry instructions the model follows. Learn direct and indirect injection, data exfiltration through tools, and why no prompt fully prevents it.
      • Any text the model reads can try to instruct it; treat retrieved documents and tool results as untrusted
      • The damage comes from what the model can do: limit tools, require approvals, and never give an agent both private data and a way to send it out
      • Defence is layered (least privilege, input and output checks, human approval), because a prompt alone will be bypassed
    • OWASP Top 10 for LLM AppsThe standard list of risks for AI applications: injection, sensitive data disclosure, supply chain, data poisoning, improper output handling, excessive agency and more, with a check for each in your app.
      • Improper output handling means model text reaching a shell, a database or HTML unescaped; treat output as user input
      • Excessive agency is giving an agent more tools or permissions than the task needs
      • Use the list as a review checklist before launch and as interview preparation
    • Guardrails and ModerationCheck inputs and outputs in code: moderation APIs, topic and PII classifiers, schema validation, allow-lists for tools and URLs, and libraries such as Guardrails AI and NeMo Guardrails.
      • A guardrail is a deterministic check outside the model; it does not depend on the model behaving
      • Block or route risky inputs before they cost a model call, and check outputs before they reach the user
      • Keep guardrails measurable: log what they block and review false positives
    • Privacy and Data HandlingWhat leaves your system when you call an API, provider retention and training policies, PII in prompts and logs, India's DPDP Act, and the choices (redaction, regional hosting, open models) that follow.
      • API traffic is not used for training by default at the major providers, but retention and region vary; read the policy for your plan
      • Redact or tokenise PII before it goes into a prompt or a trace; logs are the usual leak
      • For regulated data, open models on your own infrastructure may be the only compliant option
    • Red Teaming and Adversarial Testing(recommended)Attack your own app on purpose: jailbreak attempts, injection through documents and tools, harmful-content probes and privacy probes, automated with tools and repeated before each release.
      • Write the attacks as eval cases so they run on every change, not once before launch
      • Indirect attacks through content the app reads are the ones teams forget to test
      • Record what got through and fix the system, not just the prompt

    Projects for this stage

    • Eval harness: A test suite for your RAG bot: 50 questions with reference answers, automated scoring with an LLM judge, a dashboard of scores by version, and a CI job that fails on regression
    • Red-team report: Attack your own agent with prompt injection, jailbreaks and data exfiltration attempts, document what got through, and ship the fixes
  9. Stage 9: Open Models, Local Inference and Fine-Tuning

    3 weeks, Advanced, 9 topics

    Run and adapt open-weight models: Hugging Face, Ollama and llama.cpp on your laptop, quantization, serving with vLLM, and fine-tuning with LoRA when evals prove a prompt is not enough

    • Open-Weight Models and LicencesThe open families (Llama, Mistral, Qwen, Gemma, DeepSeek, Phi), what open weights does and does not mean, model cards, and licences that allow or restrict commercial use.
      • Open weights let you run, inspect and fine-tune a model; the training data and code are usually not included
      • Licences differ: some are Apache 2.0, others add user limits or use restrictions; read before shipping
      • Small open models (1B to 8B parameters) now match older hosted models on many tasks and run on consumer hardware
    • Hugging Face Hub and TransformersThe home of open models: finding and downloading models and datasets, the Transformers library and pipelines, the Inference API, and Spaces for demos.
      • A pipeline call runs a model for a task in three lines, which is the fastest way to try an open model
      • Datasets on the Hub give you training and eval data with licences stated
      • A Space is a free, shareable demo of your project and a strong portfolio piece
    • Running Models LocallyOllama, llama.cpp and LM Studio run quantized models on a laptop or a small server, and expose an OpenAI-compatible API so your app code does not change.
      • Local inference costs nothing per token and keeps data on the machine, which matters for privacy and for learning without a budget
      • An OpenAI-compatible endpoint means the same client code talks to a local model and a hosted one
      • Expect slower, weaker output than frontier models; use local models for drafts, classification and private data
    • Quantization(recommended)Shrink a model's weights from 16-bit to 8- or 4-bit (GGUF, GPTQ, AWQ) so it fits in less memory and runs faster, and measure the quality it costs on your evals.
      • 4-bit quantization cuts memory about four times with a small quality loss on most tasks
      • Pick the quantization level by running your eval set, not by the file size alone
      • GGUF is the format for llama.cpp and Ollama; GPTQ and AWQ target GPU serving
    • Serving with vLLM(recommended)Serve an open model to many users on a GPU with vLLM (or TGI, SGLang): continuous batching, paged attention, an OpenAI-compatible server, and measuring throughput and latency.
      • Batching requests on one GPU is what makes self-hosting cheaper than per-token APIs at volume
      • Measure tokens per second and time to first token under load before promising a latency
      • GPU rental (RunPod, Modal, Lambda, the big clouds) lets you serve without buying hardware
    • When to Fine-TuneFine-tune for style, format, a narrow task or lower cost at volume, after prompting and RAG with evals have shown the gap. Not for adding knowledge, and not first.
      • A fine-tuned small model can replace a prompted large model on a narrow task at a fraction of the cost
      • You need hundreds to thousands of good examples; the eval set you already built is where they come from
      • Fine-tuning locks in behaviour, so retraining is needed when the task changes; prompts are easier to iterate
    • LoRA and QLoRA(recommended)Parameter-efficient fine-tuning that trains small adapter matrices instead of the whole model, so a 7B model fine-tunes on one consumer GPU or a free Colab, with PEFT, TRL, Unsloth or Axolotl.
      • LoRA trains under one percent of the parameters and produces an adapter file you can swap or share
      • QLoRA adds 4-bit quantization of the base model, which is what makes free-tier GPUs enough
      • Unsloth and Axolotl wrap the recipe so a first fine-tune is a config file and an afternoon
    • Fine-Tuning Through APIs(recommended)Hosted fine-tuning on OpenAI, Gemini and others: prepare a JSONL dataset, train, evaluate against the base model, and deploy the result under the same API.
      • No GPUs to manage: upload examples, wait, and call the new model name
      • Compare the fine-tuned model with the base model on the held-out eval set; the gain is often smaller than expected
      • Fine-tuned hosted models are priced higher per token, so check that the saving on prompt length pays for it
    • Preference Tuning and Distillation(optional)How instruction-following models are made and improved: RLHF and DPO from preference pairs, and distillation of a large model's outputs into a small one you can run cheaply.
      • DPO trains on pairs of preferred and rejected answers without a separate reward model, which makes it practical for small teams
      • Distillation uses a strong model to label data and a small model to learn it; it is the usual route to a cheap production model
      • This is where AI engineering meets ML engineering; the ML Engineer roadmap goes deeper

    Projects for this stage

    • Local assistant: A chat app running fully offline on Ollama with a small model, RAG over local files, and a comparison of speed and quality against a hosted model
    • Fine-tuned classifier: Fine-tune a small open model with LoRA to classify support tickets or job postings, and report accuracy against few-shot prompting of a hosted model
  10. Stage 10: Shipping AI Products

    3 weeks, Advanced, 9 topics

    Put it in front of users: the architecture of an LLM app, streaming UIs, cost and latency engineering, reliability across providers, deployment, monitoring, testing in CI, AI coding tools, and getting hired

    • Architecture of an LLM AppThe usual shape: a web or mobile client, a backend that owns the keys and prompts, a model gateway, a vector store, a job queue for slow work, and tracing. Where each concern lives and why.
      • Keys and prompts stay on the server; the client only ever talks to your backend
      • Anything slower than a few seconds (batch extraction, re-indexing) belongs in a queue with a worker
      • Design for the model being swapped: isolate the provider behind one module
    • Streaming UIsBuild the chat and generation interfaces users expect: streaming text, stop and regenerate, rendering markdown and code safely, showing tool calls and sources, with the Vercel AI SDK, Streamlit or Gradio.
      • Streamlit and Gradio give a demo in an hour; the AI SDK gives a production React UI with streaming hooks
      • Render model output as untrusted content: sanitise HTML and never execute what it returns
      • Show progress (searching, reading, writing) during agent runs or users assume the app is stuck
    • Caching, Batching and Cost ControlCut the bill: cache identical and similar requests, use prompt caching, batch offline work, route to small models, trim prompts, and set per-user and per-feature budgets.
      • Measure cost per request and per user first; the biggest savings are usually in a few verbose prompts
      • A response cache for repeated questions can remove a large share of calls in support and search products
      • Budgets with hard limits per user stop an abuse loop or a bug from running up the bill overnight
    • Latency Engineering(recommended)Make it feel fast: streaming, smaller or faster models, parallel calls, shorter prompts and outputs, predicted outputs, and measuring p50 and p95 instead of averages.
      • Output tokens dominate latency; asking for shorter answers is the cheapest speed-up
      • Run retrieval, classification and other independent calls in parallel, not in sequence
      • Track p95 latency per feature; averages hide the slow tail users complain about
    • Reliability Across ProvidersHandle rate limits, timeouts and outages: retries with backoff, circuit breakers, fallbacks to a second provider or model, graceful degradation, and idempotent requests.
      • Every provider has outages; a fallback model on a second provider is cheap insurance
      • Retry only on retryable errors, with jitter, and cap total attempts; blind retries make an outage worse
      • Degrade gracefully: a cached answer or a plain search result beats an error page
    • Deploying AI Apps(recommended)Ship the backend and UI: serverless on Vercel or Cloudflare for API-based apps, containers on Render, Fly or a cloud VM, and GPU hosts such as Modal and RunPod for open models, with secrets and function timeouts in mind.
      • Serverless function timeouts (often 10 to 60 seconds) cut long model calls short; stream or move work to a queue
      • A container with a Dockerfile runs the same anywhere, which keeps deployment boring
      • GPU hosts bill by the second; scale to zero when idle or the bill arrives anyway
    • Monitoring in ProductionWatch quality, cost and errors after launch: traces sampled for review, user feedback signals (thumbs, edits, retries), drift when a provider updates a model, and alerts on cost and error rates.
      • A provider can change a model's behaviour under the same name; your eval set run on a schedule is how you notice
      • Thumbs-down and regenerate clicks are free labels; route them into your eval set
      • Alert on cost per hour and error rate, not only on uptime
    • Testing AI Features in CI(recommended)Unit-test the code around the model with recorded responses, run a small eval set on every pull request and the full set nightly, and keep flaky model behaviour out of the test suite.
      • Mock the model in unit tests so parsing, tools and error handling are tested deterministically and for free
      • A short eval run on each pull request catches most regressions in minutes
      • Pin model versions in tests where providers offer dated snapshots
    • AI Coding Tools and Getting HiredUse Cursor, Copilot and Claude Code well, then turn the work into a job: a portfolio with evals and live demos, an India-focused job search, and the questions AI engineer interviews ask.
      • Interviews for AI roles ask you to design a RAG or agent system, explain how you evaluated it, and talk through cost and failure modes
      • Three finished projects with live demos and eval numbers beat ten tutorials; recruiters open the links
      • AI coding tools make you faster, but you must still read every line you ship; interviewers will ask why it works

    Projects for this stage

    • Deploy an AI feature end to end: A public app (chat with docs, or an agent) with streaming, auth, rate limits, tracing, a cost dashboard and an eval suite in CI, deployed on Vercel or a container host
    • AI engineer portfolio: A GitHub profile with three finished projects (RAG, agent, fine-tune), each with a live demo, eval results and a short write-up of what you measured and changed

AI Engineer roadmap: questions people ask

Is AI engineering a good career in India in 2026?

Yes. Demand for people who can build on large language models has grown quickly since 2023 across startups, product companies and IT services firms in India, in Bengaluru, Hyderabad, Pune and remote teams. The job is software engineering at heart, so it is open to any developer who can build and ship, and it pays above most entry-level software roles.

Do I need a degree or a machine learning background to become an AI engineer?

No. An AI engineer builds with pre-trained models through APIs, so the entry requirement is solid programming, mostly Python, plus the skills on this roadmap: prompting, retrieval, agents and evals. A maths-heavy machine learning background is needed for ML engineering, which has its own roadmap on this site.

How long does this AI engineer roadmap take?

About 32 weeks at 8 to 10 hours a week. The required topics alone take closer to 20 weeks. Most people can start applying for junior roles after the RAG and agents stages, as long as they have two finished projects with eval numbers to show.

What is the difference between an AI engineer and an ML engineer?

An AI engineer builds products on top of existing models: prompts, retrieval, tools, agents, evals and the application around them. An ML engineer trains, tunes and serves models, and works with training data, GPUs and MLOps pipelines. The two overlap at fine-tuning and serving; the ML Engineer roadmap covers that side.

What salary can an AI engineer expect in India?

Reported salaries in India run from about 6 lakh a year for freshers to 30 lakh and above for experienced engineers at product companies and well-funded startups. The spread is wide and depends on the city, the company and what you can demonstrate, so treat the range on this page as a guide, not a promise.

Which projects should be in an AI engineer portfolio?

Three finished, deployed projects: a document question-answering app with citations (RAG), an agent that uses tools with a human approval step, and a fine-tuned or locally run small model compared against a hosted one. Each should have an eval set with numbers in the README, because that is what interviewers ask about.

Which programming language should I learn for AI engineering?

Python first: every provider SDK, framework and eval tool supports it, and most job postings ask for it. TypeScript is a close second for web products, since OpenAI, Anthropic and Google ship official TypeScript SDKs and the Vercel AI SDK handles streaming interfaces.

blur