Artificial Intelligence

Generative AI Roadmap: Step-by-Step Guide for 2026

This generative AI roadmap shows you how to build applications with large language models, from AI basics and prompting to APIs, RAG, agents, evaluation, safety and deployment, step by step.

Steps8Time4 to 8 monthsLevelBeginner to job-ready

What is a Generative AI Developer?

A generative AI developer builds products that create text, images, code or other content using AI models such as large language models (LLMs). They design prompts, connect models to company data, build chatbots and agents, and make sure results are useful and safe.

Generative AI skills are now used in software engineering, marketing, customer support, data and product teams. Many companies want people who can turn AI models into reliable real-world tools.

How to use this Generative AI roadmap

Follow this generative AI roadmap step by step. Basic Python is enough to start; see our Python roadmap if you are new to coding.

Build one assistant throughout, such as a document Q&A bot, and improve it with every step.

1Step 1: AI and LLM fundamentals

Understand how generative models work at a high level.

What is it?

An LLM predicts the next token (a piece of a word) again and again to produce text. It learns patterns from large amounts of training data.

What to learn

Machine learning basicsNeural networksTransformersTokens and context windowsModel limitations

You do not need to train models from scratch to build great AI apps, but you should understand what they can and cannot do.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Machine learning basics

Machine learning means computers learn patterns from data instead of following hand-written rules. Generative AI is a type of ML that creates new content such as text, images or code.

Neural networks

Neural networks are layers of connected units that learn from examples. Large ones, trained on huge datasets, power today’s language and image models.

Transformers

The transformer architecture uses “attention” so each word can consider every other word. It is the foundation of GPT, Claude, Gemini and Llama.

Tokens and context windows

Models read and write tokens (pieces of words). The context window is how many tokens the model can consider at once, including your prompt, documents and its answer.

Model limitations

Models can “hallucinate” (state false things confidently), have knowledge cut-off dates and may misread unclear prompts. Always design apps that check important facts.

Example

text

Prompt:   "The capital of France is"
Tokens:   [The] [capital] [of] [France] [is]
Model predicts next token -> [Paris]
Then continues -> [.]

Text is generated one token at a time, based on everything before it.

Practice project: Write a one-page explainer on how LLMs generate text, with examples of common mistakes they make.

Helpful resource: Hugging Face courses

2Step 2: Prompt engineering

Write instructions that get reliable results.

What is it?

Prompt engineering means writing inputs that guide a model to produce the result you need.

What to learn

Clear instructionsExamples (few-shot)Roles and contextStructured outputsIterating on prompts

Be specific about the task, audience, format and length. Vague prompts give vague results.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Clear instructions

Say exactly what you want: the task, audience, length and format. Vague prompts give vague answers.

text

Bad:  "Write about our product."
Good: "Write a 100-word Instagram caption for our vegan protein bar, aimed at gym-goers, ending with a call to action."
Examples (few-shot)

Showing one or two examples of the desired output helps the model copy the style and format.

Roles and context

Give background: who the model is acting as, who the user is and any rules. The system prompt is the best place for this.

Structured outputs

Ask for JSON or a fixed format so your code can read the answer reliably.

text

Return JSON: {"sentiment": "positive|negative", "summary": "..."}
Iterating on prompts

Test prompts on many real inputs, note failures and improve the instructions step by step. Keep versions so you can compare.

Example

text

Task: Summarise the customer email below.
Audience: support team lead
Format: 3 bullet points + 1 suggested action
Tone: neutral, factual

Email:
"""
{email_text}
"""

Clear task, audience, format and delimiters make outputs consistent.

Practice project: Create a prompt library of ten tested prompts for real tasks.

Helpful resource: Anthropic: Prompt engineering guide

3Step 3: Working with model APIs

Call AI models from your own code.

What is it?

Model APIs take a list of messages and return the model’s reply, which you can use in any app.

What to learn

API keys and securityMessages and system promptsTemperature and parametersStreamingCost and rate limits

Keep API keys in environment variables, never in your code or Git repository.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
API keys and security

API keys are like passwords for AI services. Store them in environment variables or a secrets manager, never in frontend code or GitHub.

bash

export ANTHROPIC_API_KEY="..."
Messages and system prompts

Chat APIs take a list of messages with roles (user, assistant). A system prompt sets overall behaviour and rules.

Temperature and parameters

Temperature controls randomness: low for factual tasks, higher for creative writing. Max tokens limits answer length.

Streaming

Streaming sends the answer word by word as it is generated, so users see a response immediately instead of waiting.

Cost and rate limits

APIs charge per token and limit requests per minute. Keep prompts short, cache repeated results and handle rate-limit errors with retries.

Example

python

import anthropic

client = anthropic.Anthropic()  # reads ANTHROPIC_API_KEY
msg = client.messages.create(
    model="MODEL_NAME",
    max_tokens=300,
    messages=[{"role": "user", "content": "Explain RAG in two sentences."}],
)
print(msg.content[0].text)

Replace MODEL_NAME with a current model from the provider’s documentation.

Practice project: Build a small command-line chatbot using an LLM API.

Helpful resource: Anthropic API documentation

4Step 4: Embeddings and vector search

Let your app search by meaning, not just keywords.

What is it?

Embeddings turn text into lists of numbers. Texts with similar meaning get similar numbers, so you can find related content.

What to learn

EmbeddingsSimilarity searchVector databasesChunking documentsMetadata filters

How you split documents into chunks has a big effect on answer quality. Test different chunk sizes.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Embeddings

Embeddings convert text into vectors (lists of numbers) where similar meanings are close together.

Similarity search

To find related text, compare vectors with cosine similarity and return the closest matches.

python

import numpy as np
def cosine(a, b): return a @ b / (np.linalg.norm(a) * np.linalg.norm(b))
Vector databases

Vector databases (pgvector, Chroma, Pinecone, Qdrant) store embeddings and search millions of them quickly.

Chunking documents

Split long documents into smaller chunks (for example 300–800 tokens, with some overlap) before embedding, so search returns focused passages.

Metadata filters

Store extra fields like date, author or department with each chunk, then filter searches, such as “only HR policies from 2026”.

Example

python

import numpy as np

def cosine(a, b):
    return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))

scores = [cosine(query_vec, v) for v in doc_vecs]
best = int(np.argmax(scores))

The document with the highest similarity score is the closest match to the question.

Practice project: Embed 50 help articles and build a semantic search tool.

Helpful resource: Hugging Face courses

5Step 5: Retrieval-augmented generation (RAG)

Answer questions using your own documents.

What is it?

RAG finds relevant passages from your data and gives them to the model, so answers are based on your documents.

What to learn

Retrieve then generateContext injectionCitationsReducing hallucinationsHybrid search

Ask the model to answer only from the provided context and to say when the answer is not there.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Retrieve then generate

RAG first searches your documents for relevant passages, then asks the model to answer using them.

Context injection

Insert the retrieved passages into the prompt with clear instructions to use only that information.

Citations

Ask the model to cite which passage each fact came from, and show sources to users so they can check answers.

Reducing hallucinations

Tell the model to say “I don’t know” when the answer is not in the context, improve retrieval quality and evaluate answers regularly.

Hybrid search

Combine keyword search (good for names and codes) with vector search (good for meaning) to get the best results.

Example

python

context = "\n\n".join(top_chunks)
prompt = f"""Answer using only the context below.
If the answer is not in the context, say you don't know.

Context:
{context}

Question: {question}"""

Grounding the model in retrieved text makes answers more accurate and traceable.

Practice project: Build a document Q&A bot that answers with sources from a PDF set.

Helpful resource: Anthropic API documentation

6Step 6: Tools, agents and workflows

Let models take actions and complete multi-step tasks.

What is it?

Tool calling lets a model ask your code to run a function, such as looking up data, and then use the result.

What to learn

Tool or function callingAgentsWorkflows and chainsMemoryHuman approval steps

Start with simple, predictable workflows. Add autonomous agents only when they are really needed.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Tool or function calling

You describe functions (like “get order status”) to the model; it decides when to call them and your code runs them.

Agents

Agents let a model plan steps, call tools, check results and continue until a goal is reached. Use them for multi-step tasks, with clear limits.

Workflows and chains

Predictable step-by-step pipelines (classify → retrieve → answer → check) are often more reliable than fully autonomous agents.

Memory

Memory lets an assistant remember earlier conversation or user preferences, stored in a database and added back into the prompt when relevant.

Human approval steps

For risky actions such as sending emails or payments, require a human to approve before the agent acts.

Example

json

{
  "name": "get_order_status",
  "description": "Get the status of an order by ID",
  "input_schema": {
    "type": "object",
    "properties": { "order_id": { "type": "string" } },
    "required": ["order_id"]
  }
}

The model sees this tool definition and can request it when a user asks about an order.

Practice project: Build an assistant that can look up order status through a tool.

Helpful resource: Anthropic: Tool use

7Step 7: Evaluation, safety and responsible AI

Measure quality and reduce risks.

What is it?

Evaluation checks how often your AI app gives correct, safe and useful answers.

What to learn

Test setsAutomatic and human evaluationHallucination checksPrompt injectionPrivacy and bias

Never trust a demo. Test your app on many real examples before launching.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Test sets

Collect real example questions with good answers and run them after every change to measure quality.

Automatic and human evaluation

Use automatic checks (exact matches, a second model grading answers) plus regular human review for nuance.

Hallucination checks

Verify that answers are supported by sources, and flag or block unsupported claims.

Prompt injection

Prompt injection is when text in a document or user input tries to override your instructions. Treat retrieved content as data, limit tool permissions and validate outputs.

Privacy and bias

Avoid sending sensitive personal data unnecessarily, follow privacy laws and test outputs for unfair or biased responses.

Example

python

correct = 0
for q in test_set:
    answer = ask_bot(q["question"])
    if q["expected"].lower() in answer.lower():
        correct += 1
print(f"Accuracy: {correct / len(test_set):.0%}")

A simple automatic check like this gives a baseline before deeper human review.

Practice project: Create a 30-question evaluation set and score your bot’s answers.

Helpful resource: OWASP Top 10 for LLM applications

8Step 8: Deployment and AI products

Ship AI features users can rely on.

What is it?

Deployment turns your prototype into a service real users can access, with monitoring to keep it reliable.

What to learn

Web app frontendsCaching and costsMonitoring and loggingFine-tuning basicsProduct thinking

Track cost per request and response time from day one. They matter as much as quality.

Learn each topic here

Tap a topic to open a full explanation with examples, no need to go anywhere else.
Web app frontends

Build chat or tool interfaces with React, Next.js or simple tools like Streamlit and Gradio, with streaming and clear error messages.

Caching and costs

Cache repeated questions and embeddings, choose smaller models for simple tasks and monitor spending per user.

Monitoring and logging

Log prompts, responses, latency and errors (without sensitive data) to debug issues and improve quality.

Fine-tuning basics

Fine-tuning trains a model further on your own examples to change style or improve a narrow task. Try good prompting and RAG first; fine-tune when they are not enough.

Product thinking

Start from a real user problem, measure whether AI actually helps, design for mistakes and keep humans in control where it matters.

Example

python

from fastapi import FastAPI

app = FastAPI()

@app.post("/ask")
def ask(q: dict):
    answer = rag_answer(q["question"])
    log_request(q["question"], answer)
    return {"answer": answer}

A small API like this lets any website or app use your AI assistant.

Practice project: Deploy your Q&A bot as a web app with logging and a feedback button.

Helpful resource: Hugging Face documentation

Generative AI roadmap project ideas

Projects turn what you learn into real skills. Build at least one project from each level below, and put every finished project on GitHub with a clear README.

Beginner

Prompt library

Ten tested prompts for real tasks.

Beginner

CLI chatbot

Simple chatbot using a model API.

Intermediate

Semantic search

Embedding-based search over articles.

Intermediate

Document Q&A (RAG)

Answers with sources from your files.

Advanced

Tool-using assistant

Agent that calls APIs with approval steps.

Advanced

Deployed AI app

Web app with evaluation, logging and feedback.

Tips to finish this generative ai roadmap

  • Learn by building. Spend at least two thirds of your study time writing code and making projects, not watching videos.
  • Be consistent. One focused hour every day beats a long session once a week. Small daily progress adds up quickly.
  • Share your work. Post your projects on GitHub and LinkedIn. It builds your confidence and helps recruiters find you.
  • Ask for feedback. Join a community, ask questions and review other people’s code. Explaining things to others is one of the fastest ways to learn.
  • Do not chase every new tool. The fundamentals in this generative ai roadmap change slowly. Master them first, then explore new libraries.

Career paths and next steps

After this generative AI roadmap, you can work as a generative AI developer, AI engineer, LLM application developer or AI product specialist. With deeper ML skills you can move toward machine learning engineering.

Continue with the AI engineer roadmap or the machine learning engineer roadmap.

Related roadmaps

Generative AI Roadmap FAQs

Do I need a maths background for generative AI?

Not to build apps with existing models. Maths matters more if you want to train or research models.

Which programming language is best for generative AI?

Python is the most common, and JavaScript or TypeScript are popular for web AI apps.

What is RAG?

Retrieval-augmented generation finds relevant information from your data and gives it to the model so answers are grounded in that data.

Is generative AI a good career?

Many companies are building AI features, so practical skills in building reliable AI apps are valuable.