“Agent-like” Components within LlamaIndex

LlamaIndex provides core modules capable of automated reasoning for different use cases over your data.

Some of these core modules are shown below along with example tutorials (not comprehensive, please click into the guides/how-tos for more details).

SubQuestionQueryEngine for Multi-Document Analysis

Query Transformations


LLM Reranking

Chat Engines

Using LlamaIndex as as Tool within an Agent Framework

LlamaIndex can be used as as Tool within an agent framework - including LangChain, ChatGPT. These integrations are described below.


We have deep integrations with LangChain. LlamaIndex query engines can be easily packaged as Tools to be used within a LangChain agent, and LlamaIndex can also be used as a memory module / retriever. Check out our guides/tutorials below!



LlamaIndex can be used as a ChatGPT retrieval plugin (we have a TODO to develop a more general plugin as well).


Native OpenAIAgent

With the new OpenAI API that supports function calling, it’s never been easier to build your own agent!

Learn how to write your own OpenAI agent in under 50 lines of code, or directly use our super simple OpenAIAgent implementation.