General LLM orchestration vs data-focused framework.
| LangChain | LlamaIndex | |
|---|---|---|
| Focus | Broad LLM apps | Data + RAG |
| Abstractions | Many, sometimes heavy | Data-focused |
| RAG features | Good | Best-in-class |
General agent apps, need broad LLM tooling.
RAG-heavy, complex data indexing, specialized retrieval strategies.
For RAG-focused apps, LlamaIndex has better primitives. For general agents, LangChain (or LangGraph).