
Applied AI
AI Engineer
LLMs, prompts, embeddings, RAG, LangChain and PySpark, from concept to code.
- units
- 9
- lessons
- 26
- minutes
- 140
- exercises
- 156
The first unit is free, no credit card required. The other 8 unlock when you buy the course or go Pro. Single course: $12.99, one-time payment.
What's in the course.
LLMs, prompts, embeddings, RAG, LangChain and PySpark.
9 units, 26 lessons, and about 140 minutes of practice, a few minutes at a time.
Tokens, context window, temperature and why models sometimes make things up.
In this unit, you'll learn to
- Understand tokens and the context window
- Choose the right temperature for each task
- Recognise and reduce hallucinations
Lessons
- Tokens and context, unlocked6 exercises · 5 min
- Temperature and hallucination, unlocked6 exercises · 5 min
Write clear instructions, give examples and ask for outputs your code can use.
In this unit, you'll learn to
- Structure a prompt with role, task, constraints and format
- Use few-shot examples
- Ask for structured JSON output
Lessons
- Anatomy of a good prompt, locked6 exercises · 5 min
- Few-shot and structured output, locked6 exercises · 5 min
- When valid JSON is wrong, locked6 exercises · 5 min
Turn text into vectors and find what is similar by meaning, not by word.
In this unit, you'll learn to
- Understand what an embedding represents
- Compare texts with cosine similarity
- Know when to use a vector database
Lessons
- What is an embedding, locked6 exercises · 5 min
- Similarity and vector search, locked6 exercises · 6 min
- Exact or approximate index, locked6 exercises · 5 min
Retrieve the right excerpts and hand them to the model for grounded, sourced answers.
In this unit, you'll learn to
- Build the complete RAG pipeline
- Choose chunk size and overlap
- Evaluate retrieval and answers methodically
Lessons
- The RAG pipeline, locked6 exercises · 6 min
- Chunking and evaluation, locked6 exercises · 6 min
- Measure and diagnose RAG, locked6 exercises · 5 min
Compose prompts, models and parsers into chains, and give tools to agents.
In this unit, you'll learn to
- Build a chain with a prompt, model and parser
- Understand tool calling
- Know when to use an agent and with what precautions
Lessons
- Prompt, model and parser, locked6 exercises · 6 min
- Tools and agents, locked6 exercises · 6 min
- Workflow, agent, and state, locked6 exercises · 5 min
Prepare and process data at scale to feed models and RAG pipelines.
In this unit, you'll learn to
- Use DataFrames and understand lazy evaluation
- Tell transformations from actions
- Generate chunks and embeddings at scale
Lessons
- DataFrames and lazy evaluation, locked6 exercises · 6 min
- Data for AI at scale, locked6 exercises · 6 min
- Only what changed, locked6 exercises · 5 min
Hybrid search, reranking, query rewriting, structure-based chunks, and a context that fits the model's attention.
In this unit, you'll learn to
- Combine keywords, vectors, and reranking in one search
- Rewrite queries, filter, and split documents by structure
- Decide what goes in, what stays out, and what gets summarized
Lessons
- Hybrid search and reranking, locked6 exercises · 5 min
- Queries, filters, and chunks, locked6 exercises · 5 min
- Context engineering, locked6 exercises · 5 min
Tools the model uses correctly, judges you can trust, and a bill that adds up at the end of the month.
In this unit, you'll learn to
- Design tools the agent gets right, including over MCP
- Calibrate an LLM judge and block regressions
- Cut cost and latency by reading traces
Lessons
- Tools the agent gets right, locked6 exercises · 5 min
- LLM judges and regression, locked6 exercises · 5 min
- Cost, latency, and traces, locked6 exercises · 5 min
The Beacon Fiber assistant, from a prototype that finds answers to measured production, using the whole course.
In this unit, you'll learn to
- Take retrieval from prototype to gold set
- Give the agent tools with permissions and approval
- Decide on launch and watch production with numbers
Lessons
- From prototype to solid search, locked6 exercises · 6 min
- An agent with brakes, locked6 exercises · 6 min
- Measure, launch, and monitor, locked6 exercises · 6 min
Try it for real.
Ready to build with AI? Real exercises from this course, solved step by step, exactly as they appear in the app.
156 exercises across 6 types in this course
- Pick the best answer69
- Write Python27
- Match26
- Fill in the code12
- Put it in order12
- Tap the chart10
Write Python. Python 3 running in your browser, nothing to install. Write it, run it, see the output.
The excerpts are already sorted by relevance, with their size in characters. Use the rule of 4 characters per token (chars // 4). Go through the list and include each excerpt that still fits in the budget, skipping any that do not fit. Print the list of chosen names and then the total number of tokens.
excerpts = [ ("refund_policy", 1800), ("delivery_faq", 2600), ("general_terms", 5200), ("exchange_policy", 1400), ] budget = 1500 chosen = [] total = 0 for name, chars in excerpts: tokens = chars // 4 if total + tokens <= budget: chosen.append(name) total += tokens print(chosen) print(total)
Correct. The first two add up to 1,100 tokens. general_terms would cost another 1,300 and blow the budget, so it is left out, and exchange_policy still fits: 1,450 in total. RAG systems do this sum so the response is not pushed out of the window.
Match. You link each situation to the right category, a few pairs at a time.
Match each term to its definition.
- Unit used to measure and bill textToken
- Everything the model sees in one callContext
- Fixed instructions on the assistant's role and rulesSystem
- The generated text, also limited in tokensOutput
Correct. These four terms appear in every API documentation. Mastering the vocabulary speeds up the rest of the course.
Pick the best answer. A real workday situation and options that all sound right.
What is a token?
- AA piece of text, often part of a word, that the model processes
- BThe flat fee the API charges per question, whatever its length
- CA whole word, separated by spaces, that the model reads at once
- DA full sentence, ended by punctuation, that the model reads as one
Correct. Models read and write in tokens. In English, the rule of thumb is about 4 characters per token; other languages often use a few more per word. Cost and limits are measured in tokens.
Practice exams for this course
This course prepares you for these exams. Try free questions before you practice in the app.


