Phase 5: Frameworks
Know what the frameworks are for. LangChain, LangGraph, LlamaIndex, CrewAI and the rest package patterns you can already write by hand. Learning the pattern first lets you judge a framework, and choose none when none is needed.
After this phase you can
- Map each framework to the idea it wraps
- Build a small chain and a small graph yourself
- Decide when a framework helps and when it only adds weight
Before you start: Phases 1 to 4: RAG, tool calling and the agent loop.
Lessons in this phase
- LangChain Beginner · 11 min
LangChain is a Python library of building blocks (prompts, models, parsers, retrievers, tools) that you join together with a pipe operator.
- LangGraph Intermediate · 12 min
LangGraph lets you describe an agent or workflow as a graph of steps (nodes) joined by edges, with shared state passed along.
- LlamaIndex Beginner · 10 min
LlamaIndex is a library focused on connecting your own documents to an LLM: load, split, index, retrieve and answer.
- OpenAI Agents SDK Intermediate · 11 min
The OpenAI Agents SDK is a small Python library with three main ideas: an Agent (model plus instructions plus tools), a Runner that runs the agent loop, and handoffs between agents.
- CrewAI Intermediate · 10 min
CrewAI organizes several LLM agents as a "crew" where each agent has a role and goal and works through assigned tasks.
- AutoGen Advanced · 10 min
AutoGen is Microsoft's framework for multi-agent systems where agents talk to each other by sending messages.
- DSPy Advanced · 11 min
DSPy lets you declare what an LLM step should do (inputs and outputs) as code, then uses an optimizer to find good prompts instead of you hand-writing them.
- Haystack Intermediate · 10 min
Haystack, from deepset, builds search and RAG systems as pipelines of components whose inputs and outputs are connected explicitly.