← AI Terminology

LlamaIndex

LlamaIndex (formerly GPT Index) is an open-source Python framework focused on connecting LLMs to external data — providing structured abstractions for document ingestion, indexing, retrieval, and querying that make RAG pipelines straightforward to build and production-ready.

It is the primary competitor to LangChain, with a stronger focus on data connectors and retrieval.
Why It Matters in AI
LLMs have a knowledge cutoff and context window limit — they cannot access private documents, databases, or real-time data. LlamaIndex solves this by providing a comprehensive toolkit for ingesting, chunking, embedding, indexing, and retrieving external data, then feeding it into LLM prompts at query time. Its data connector ecosystem (150+ sources) and query engine abstractions made enterprise RAG development significantly faster.
Key Points
Aspect Description
Agents ReActAgent, OpenAIAgent — tool-using agents built on LlamaIndex components
Indexes VectorStoreIndex, SummaryIndex, KnowledgeGraphIndex — different retrieval strategies
LlamaCloud Managed data pipeline and index service — production deployment of LlamaIndex workflows
vs LangChain LlamaIndex: stronger on data ingestion and retrieval; LangChain: stronger on chains and agents
Query engines index.as_query_engine() — handles retrieval + LLM synthesis in one call
Data connectors 150+ loaders: PDF, Notion, Slack, Google Drive, SQL, APIs — via llama_hub
Simple Analogy
A research assistant who knows how to read any document format, file it intelligently in a searchable cabinet, and retrieve the most relevant pages when asked a question — then hand those pages to the LLM to synthesise an answer. LlamaIndex is the filing and retrieval system; the LLM is the analyst.
Common Usage Examples
  • from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
  • documents = SimpleDirectoryReader("data/").load_data()
  • index = VectorStoreIndex.from_documents(documents)
  • query_engine = index.as_query_engine(); response = query_engine.query("What is the revenue?")
  • from llama_index.readers.notion import NotionPageReader — Notion data connector
Summary
In short: LlamaIndex is the go-to framework for connecting LLMs to external data — providing a complete toolkit for ingestion, indexing, and retrieval that powers production RAG applications.