LlamaIndex — every error, fix, and pattern
The complete developer reference for LlamaIndex — 15 deep fix guides covering the errors that come up in real RAG applications, from VectorStoreIndex batch failures to SubQuestionQueryEngine decomposition to StorageContext reload mismatches. All code tested against LlamaIndex 0.11+, verified 2026.
What is LlamaIndex?
LlamaIndex is the RAG-first open-source framework for building applications on top of LLMs. Where LangChain emphasizes composable chains and agents, LlamaIndex emphasizes data — indexing, retrieval, and query engines as first-class primitives. It has particularly strong support for advanced retrieval patterns (router, sub-question, hybrid) and its own event-driven Workflow orchestration.
This hub focuses on the errors, gotchas, and configuration issues that come up in production LlamaIndex code — not tutorial content. Every guide has real error messages, ranked causes, three tested fixes with working code, and prevention checklists.
Browse by category
Every LlamaIndex error we've documented, grouped into the six categories that matter for troubleshooting.
Core Query Engine & Ingestion
Building blocks — from documents to embeddings to retrieval.
Chat Engines & Agents
Conversational patterns, tool-calling agents, and workflows.
Advanced Retrieval
Router, sub-question, and hybrid retrieval patterns — LlamaIndex's strongest area.
Storage & Persistence
StorageContext, vector store integrations, and durable ingestion.
Config & Integration
Settings, LLM and embedding resolution across providers.
Evaluation & Observability
Measuring quality and getting visibility into what happened.
All 15 LlamaIndex errors
The complete list — sorted by page number. Each fix guide includes real error messages, root causes ranked by frequency, three tested fixes with working Python code, a seven-item prevention checklist, and five FAQs.
-
#106
VectorStoreIndex construction — embedding batches failn/aCore Query Engine & Ingestion
-
#107
SimpleDirectoryReader — file type and encoding errorsn/aCore Query Engine & Ingestion
-
#108
Node parser selection — SentenceSplitter vs Semantic vs Coden/aCore Query Engine & Ingestion
-
#109
Query engine returning empty or wrong nodesn/aCore Query Engine & Ingestion
-
#110
Chat engine mode selection — Condense, Context, or plusn/aChat Engines & Agents
-
#111
Agents — ReActAgent and FunctionCallingAgentn/aChat Engines & Agents
-
#112
Workflow @step, Event, and Context errorsn/aChat Engines & Agents
-
#113
RouterQueryEngine — selector picks wrong enginen/aAdvanced Retrieval
-
#114
SubQuestionQueryEngine — decomposition errorsn/aAdvanced Retrieval
-
#115
Hybrid retrieval — QueryFusionRetriever and RRFn/aAdvanced Retrieval
-
#116
StorageContext mismatch — wrong embed_model on reloadn/aStorage & Persistence
-
#117
Vector store integrations — Chroma, Qdrant, Pineconen/aStorage & Persistence
-
#118
Settings global vs per-object resolutionn/aConfig & Integration
-
#119
Evaluation modules — cost blowup and samplingn/aEvaluation & Observability
-
#120
Observability — instrumentation, Arize, Langfuse, LlamaCloudn/aEvaluation & Observability
LlamaIndex package catalog (2026)
LlamaIndex is a family of independently versioned packages. Core primitives live in llama-index-core; every integration (embedding provider, LLM, vector store) has its own package.
| Package | Kind | Purpose | Install |
|---|---|---|---|
llama-index-core | Foundation | VectorStoreIndex, retrievers, response synthesizers, workflows | Required |
llama-index | Umbrella | Meta-package pulling core + defaults | Common |
llama-index-readers-file | Readers | File-based readers (PDF, Docx, etc.) | Common |
llama-index-embeddings-openai | Embeddings | OpenAI + Azure embeddings | Per-provider |
llama-index-embeddings-huggingface | Embeddings | Local + HF Hub embeddings | Per-provider |
llama-index-llms-openai | LLMs | OpenAI + Azure chat models | Per-provider |
llama-index-llms-anthropic | LLMs | Claude chat models | Per-provider |
llama-index-vector-stores-chroma | Vector store | Chroma integration | Per-store |
llama-index-vector-stores-pinecone | Vector store | Pinecone integration | Per-store |
llama-index-vector-stores-qdrant | Vector store | Qdrant integration | Per-store |
llama-index-postprocessor-cohere-rerank | Postprocessor | Cohere reranker | Optional |
llama-index-agent-openai | Agent | OpenAI-specific agent | For agents |
llama-cloud-services | Managed | LlamaCloud parsing + tracing + eval | Optional |
Core patterns to know
Six patterns that come up in almost every LlamaIndex codebase — and where each one goes wrong.
- Durable ingestion with
IngestionPipeline+ docstore. Skip the one-liner tutorials. See VectorStoreIndex batch failures. - Query engine tuning —
similarity_top_k, response mode, filters. See query engine returning wrong nodes. - Advanced retrieval — Router for domain routing; SubQuestion for decomposition; QueryFusion for hybrid. See hybrid retrieval.
- Workflow orchestration — event-driven state machines for complex agents. See Workflow errors.
- Storage persistence — persist_dir + embed_model config together. See StorageContext mismatch.
- Explicit models — never trust global
Settingsin production. See Settings resolution.
Get the weekly AI-error digest
New fixes, framework updates, and one deep tutorial — every Tuesday. 8,400+ engineers.