Expert skill for building LLM applications with the LlamaIndex framework — RAG pipelines, multi-agent orchestration, event-driven workflows, knowledge graph construction, production deployment, and evaluation. Use when working with LlamaIndex or comparing RAG and agent orchestration frameworks.
LlamaIndex is an MIT-licensed Python framework for building LLM applications over your data. In 2026, it has evolved from a RAG indexing library into an event-driven workflow framework with integrated production runtime (llama-deploy), agent orchestration (AgentWorkflow), knowledge graph construction (PropertyGraphIndex), and OpenTelemetry-native observability.
The framework is organized around seven core primitives: Reader (data loaders), Document/Node (chunked content model), Index (data structures over Nodes), Retriever (relevant Node selection), Query Engine (retriever + synthesis), Agent (LLM with tools), and Workflow (event-driven orchestration).
Key Principles
These principles govern every decision when building with LlamaIndex. Read them before proceeding to the reference guides.
Decouple retrieval chunks from synthesis chunks. The embedding representation that retrieves well differs from the context representation that generates well. Use SentenceWindowNodeParser + MetadataReplacementNodePostProcessor for this pattern.
Rerank before you generate. Hybrid retrieval + reranker is the minimum viable production RAG configuration.
Agents are Workflows.FunctionAgent and AgentWorkflow are pre-configured Workflows. Drop to raw Workflow when you need custom control flow.
Graphs are not just vector stores.PropertyGraphIndex adds structural path traversal that vector similarity cannot provide — combine both for maximum retrieval quality.
Evaluate in the same process. Span-attached evaluation preserves the connection between the output and the retrieval context that produced it.
Where to Start
The pipeline has 9 phases from Ingest to Deploy. If you're joining mid-stream with existing work, find your entry point:
You already have...
Start at phase
What to do
Nothing — blank project
Ingest
Set up data loading, then proceed through the full pipeline
Documents in a directory
Chunk
Choose a chunking strategy, build your index
A working vector index
Retrieve
Add hybrid search, reranking, metadata filters
An existing RAG pipeline to harden
Deploy
Add observability, llama-deploy, production debugging
A need to measure and improve quality
Evaluate
Set up evaluators, ParamTuner, span-attached scoring
Nothing — comparing frameworks
See Framework Routing Guide
Don't start the pipeline — pick the right tool first
Pipeline Mode
Different tasks need different levels of rigor. Match your scope to a mode: