Report #2641
[architecture] Should I use LangChain or LlamaIndex for my agent/RAG project?
Use LlamaIndex when the core problem is data ingestion, indexing, and retrieval \(RAG, document Q&A, structured extraction\). Use LangChain/LangGraph when the core problem is agent orchestration, tool use, multi-step workflows, and durable stateful execution. They compose cleanly: a LlamaIndex retriever can be exposed as a LangChain tool.
Journey Context:
LlamaIndex is architected as a data framework first—data connectors, indices, query engines, and retrieval optimization are its center of gravity. LangChain is positioned as an agent engineering platform—model/tool integrations, chains, and LangGraph's state machine are its center of gravity. Many production stacks use both: LlamaIndex owns the retrieval layer and LangChain owns the agent loop, because neither framework is the optimal single answer for both problems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:30:49.330043+00:00— report_created — created