LangChain and LlamaIndex are the two most widely used open-source frameworks for building LLM applications, and they appear in a large share of job listings and tutorials. Both have changed a lot since their early versions, and many online examples now use outdated APIs. This course teaches the current way to use each, what they are good at, and how to keep your code readable when the framework moves under you.
What you'll learn
- What LLM frameworks actually do, and what you would write yourself without one
- LangChain building blocks: chat models, prompt templates, output parsers and runnables
- Structured output and tool calling through LangChain's model interfaces
- LangGraph for stateful, multi-step agents: nodes, edges, state, checkpoints and human-in-the-loop steps
- LlamaIndex for data: loaders, node parsing, indexes, retrievers and query engines
- LlamaIndex workflows for event-driven pipelines
- Swapping model providers and vector stores without rewriting your app
- Tracing and debugging with LangSmith, Langfuse or OpenTelemetry-based tools
- Pinning versions and isolating framework code so upgrades don't break everything
- When a plain SDK call is simpler and better than a framework
Who it's for
- Python developers who have called an LLM API and keep meeting these frameworks in tutorials and job specs
- Teams who inherited a LangChain or LlamaIndex codebase and need to maintain it
- Engineers choosing a framework for a new retrieval or agent project
Prerequisites
- Comfortable with Python, including async and Pydantic (see Python for AI and LLM Developers)
- Basic understanding of prompts, embeddings and RAG (see Building AI Apps with LLM APIs)
- An API key for at least one model provider, or a local model
Outcomes
By the end of this course you will be able to:
- Build a retrieval app with LlamaIndex and an agent with LangGraph using current APIs.
- Trace a request end to end and find where it went wrong.
- Structure framework code so providers and versions can change safely.
- Make a clear, reasoned choice between LangChain, LlamaIndex or no framework at all.
Course outline
| Module | Topic |
|---|---|
| 1 | Why frameworks exist, and what they cost |
| 2 | LangChain core: models, prompts and runnables |
| 3 | Structured output and tools in LangChain |
| 4 | LangGraph: state, nodes and edges |
| 5 | LangGraph: checkpoints, memory and human approval |
| 6 | LlamaIndex: loading and parsing documents |
| 7 | LlamaIndex: indexes, retrievers and query engines |
| 8 | LlamaIndex workflows |
| 9 | Tracing, evaluation hooks and debugging |
| 10 | Upgrades, version pinning and code structure |
| 11 | Project: a document assistant using both frameworks |
FAQ
Should I learn LangChain or LlamaIndex?
They overlap but lean in different directions: LlamaIndex is strongest at getting your data into a retrieval pipeline, and LangGraph is strongest at controlling multi-step agent flows. Many projects use one, some use both, and the course helps you decide.
Will the examples break when the libraries update?
Both libraries release often. We use current stable versions, pin them, and show how to read changelogs and migrate, which is a skill you will need whatever version you use.
Is this the same as the AI Agents course?
AI Agents and Agentic Workflows teaches agent design independent of any framework. This course is about using two specific frameworks well.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.