AI Engineering: Build AI-Powered Apps
Build chatbots, RAG search and agents with LLM APIs.
AI engineering is one of the fastest-growing software roles. Learn to call LLM APIs (starting with Gemini's free tier), stream answers, get structured output, use tools, build retrieval-augmented generation over your own documents, build agents and MCP servers, evaluate quality, and ship safely with cost control.
You will be able to
- Call LLM APIs, stream responses and get JSON output
- Give models tools with function calling
- Build a RAG app with embeddings and a vector database
- Build an agent and an MCP server
- Evaluate AI features with test sets
- Control cost, latency and safety in production
Who it's for
Developers comfortable with Python or JavaScript who want to build AI features.
Before you start
Python or JavaScript basics · Know what an API is
Roles it leads to
Lessons
Module 1
Working with LLM APIs
From the first API call to tools.
Your first LLM API call (free Gemini API)
Get a free Gemini API key, make your first call from Python, control the answer with a config, build a small memory-enabled chatbot and handle rate-limit errors. This one call is the base of every AI feature you will build.
Tokens, cost, latency and choosing a model
Tokens decide what an LLM call costs, how long it takes and how much fits in one request. Learn to count them, estimate cost, cut latency and pick the cheapest model that does the job.
Streaming responses to a UI
Stream a model's answer token by token: first in the terminal, then through a FastAPI endpoint to a plain JavaScript page with a Stop button. Learn why it feels faster and how to handle errors mid-stream.
Structured output with JSON schemas
Make the model return data your code can trust. Define a schema with Pydantic, request JSON output from the Gemini API, validate the values and handle missing information, using a coffee-order parser as the example.
Function calling: letting the model use tools
Let a model look things up and take actions by calling your Python functions. Build a Brew & Bean assistant with automatic and manual function calling, and learn how to keep tool use safe.
Module 2
RAG: AI over your own data
Embeddings, vector search and grounded answers.
Embeddings and semantic search
Embeddings turn text into vectors so a computer can compare meaning, not just words. Learn what they are, how cosine similarity works and build a small semantic search over menu items with the Gemini API.
Vector databases: pgvector, Chroma and friends
Store embeddings in a vector database so search is persistent, filterable and fast. Build the same menu search with Chroma and with PostgreSQL plus pgvector, and learn how to choose between them.
Retrieval-augmented generation (RAG) end to end
Build a small RAG assistant in Python: chunk your own files, embed them, retrieve the best passages and make the model answer only from them, with citations and an honest 'I don't know'.
Chunking, hybrid search and re-ranking
Most RAG failures are retrieval failures. Learn how to chunk documents, combine keyword and vector search with Reciprocal Rank Fusion, filter with metadata, and re-rank so the right passage reaches the model.
Project: coffee shop menu assistant with RAG
Build a Brew & Bean menu assistant: hybrid search over menu items and FAQs, a grounded answerer that cites sources, a price check guardrail, a FastAPI endpoint and a retrieval hit-rate test.
Module 3
Agents
Loops, tools, MCP and when agents are worth it.
AI agents: tools, loops and planning
An agent is an LLM in a loop that chooses tools, reads the results and decides what to do next. Build one in about 50 lines of Python, then learn how agents fail and how to keep them safe and affordable.
Model Context Protocol (MCP): connecting AI to tools
MCP is an open standard that lets any AI app use your tools and data. Build a Brew & Bean MCP server in Python with tools, a resource and a prompt, test it with a client, and connect it to an AI app safely.
Project: build a research agent
Build a research agent in about 100 lines of Python with the free Gemini API and Wikipedia: it plans, searches, reads, saves notes, and writes a sourced report, with step limits, error handling and checks against invention.
Multi-agent systems and when to avoid them
Multiple agents can split work, but they cost more, lose context and fail in harder-to-debug ways. Learn the main patterns, build a drafter and reviewer, and use a decision ladder to choose the simplest design that works.
Module 4
Shipping AI to production
Quality, safety, local models and cost.
Evaluating AI apps (evals)
Build a small Python eval harness: a test set, code checks, an LLM judge and a score you can compare after every prompt or model change, so you catch regressions before your users do.
Guardrails, safety and prompt-injection defence
Models can be tricked, and they also make honest mistakes. Learn the layered defences an AI engineer builds: input checks, least-privilege tools, output validation and tests, so a fooled model cannot do real damage.
Running open models locally with Ollama
Install Ollama, run a small open model on your own laptop, call it from Python (chat, streaming, structured output and OpenAI-style code), and learn when local models are a better choice than a cloud API.
Prompting vs RAG vs fine-tuning
Your model gives wrong or off-style answers. Should you fix the prompt, add retrieval or fine-tune? Learn what each approach changes, a simple decision order, and why fine-tuning is the last step for most apps.
Production: caching, cost control and monitoring
Turn an AI demo into something you can run for real users: cache answers, cap tokens and budgets, add retries and fallbacks, and monitor cost, latency and quality without leaking personal data.
Tools, courses & exams
Hand-picked, free first. Free tiers and exam fees change, so check the provider's page.
Free tools
Google AI Studio
Web playground where you test prompts and get a Gemini API key. Start here for the first lessons in this track.
Free tier with rate limits; paid usage for higher limits. Limits change, so check the rate-limits page in the docs.
Ollama
Ollama
Runs open-source language models on your own computer, with an API similar to hosted ones. Useful for offline practice and for apps with private data.
Google Colab
Free notebooks in the browser, handy for trying embeddings and RAG code without installing anything.
Free tier with usage limits; paid plans for more compute.
Chroma
Chroma
Open-source vector database that runs inside your Python program. The easiest way to store embeddings while learning.
pgvector
pgvector project
Open-source extension that adds vector search to PostgreSQL. Read the README for index types, distance operators and limits.
Promptfoo
Promptfoo
Open-source tool to test prompts and models against a set of cases from the command line. Helps you turn evaluation into a habit.
Open-source core is free; check the site for any paid hosted features.
Langfuse
Langfuse
Open-source tracing and monitoring for LLM apps: see each call, its cost and latency. Useful when you reach production topics.
Self-hosting is free; the hosted cloud has a free tier and paid plans.
Free courses
Hugging Face LLM Course
Hugging Face
Free, ad-free course on how transformer models work and how to use them with the Hugging Face libraries. Good for understanding what sits under the APIs.
DeepLearning.AI short courses
DeepLearning.AI
Short, hands-on courses on building with LLMs, RAG, agents and evaluation. Many are free to take; availability changes.
Many courses are free; some content or certificates may need a paid plan. Check each course page.
LlamaIndex documentation and tutorials
LlamaIndex
Docs for a popular open-source framework for RAG and agents. Useful to see how common patterns are packaged, after you have built them by hand.
Official docs
Gemini API documentation
Official guides for text generation, streaming, structured output, function calling and embeddings, plus the current model list and rate limits. Always check it for current model names.
Model Context Protocol documentation
Model Context Protocol project
The open standard for connecting AI apps to tools and data. Read it before the MCP lesson in this track.
Pydantic documentation
Pydantic
Reference for the data-validation library used for structured output. Learn models, validators and JSON schema generation.
Practice
Communities
Exams & certifications
AWS Certified AI Practitioner (AIF-C01)
Amazon Web Services
Foundation-level exam on AI and generative AI concepts and AWS services. Suits freshers and non-developers who want a first credential. AWS offers free digital training for it.
Exam fee applies; check the official page for the current fee in INR or USD.
Microsoft Azure AI certifications
Microsoft
Microsoft has been replacing its older Azure AI Engineer exam with newer certifications focused on AI apps and agents. Suits developers working with Azure; free learning paths exist on Microsoft Learn. Check the official page for the current exam name.
Exam fee applies; check the official page for the current fee in INR or USD. Exam names have changed recently.