# LlamaIndex

> LlamaIndex is an open-source framework, available for Python and TypeScript, for connecting language models to a business's own data, with tools for loading and parsing documents, building indexes, retrieval, and agents that work over that data.

Also called: LlamaIndex framework, GPT Index, LlamaParse, LlamaCloud. Category: Tools and platforms. Source: https://aibuildindex.com/glossary/llamaindex

## In the index

- LlamaIndex: median $2,600, middle half $700 to $8,610, 32 priced briefs (https://aibuildindex.com/skills/llamaindex)
- Search over internal documents: median $2,150, middle half $300 to $8,800, 918 priced briefs (https://aibuildindex.com/cost/document-search-rag)

LlamaIndex is a developer framework built around one problem: getting a language model to work well with private data. Where general-purpose frameworks cover many kinds of AI application, LlamaIndex concentrates on the data side of [retrieval-augmented generation](https://aibuildindex.com/glossary/retrieval-augmented-generation): reading messy files, splitting and indexing them, and retrieving the right passages for each question. It began under the name GPT Index. For buyers, it appears mostly in proposals for document search, knowledge assistants and document-heavy agent builds.

## How it works

A LlamaIndex application usually follows four steps. Data connectors load content from files, databases and apps such as shared drives, wikis and ticketing systems. Parsers turn the content into nodes, which are chunks with metadata, handling PDFs, tables and slides along the way ([chunking](https://aibuildindex.com/glossary/chunking)). Indexes store the nodes, most often in a [vector database](https://aibuildindex.com/glossary/vector-database), though summary and keyword indexes also exist. Query engines then retrieve, rerank and pass passages to a model to produce an answer with sources.

On top of this, LlamaIndex offers agents that use query engines and other tools to answer multi-step questions, and an event-driven workflow system for orchestrating longer processes. The company behind it also provides commercial services, including LlamaParse for parsing complex documents and LlamaCloud for managed ingestion and retrieval, which overlap with [intelligent document processing](https://aibuildindex.com/glossary/intelligent-document-processing).

An example: a legal team wants to ask questions across several thousand contracts. A builder uses LlamaIndex to parse the PDFs, keep clause headings attached to each chunk, store them with metadata such as counterparty and date, and build a query engine that filters by counterparty before retrieving.

## What it means for cost

For document-centred builds, LlamaIndex can reduce the custom code needed for loading, parsing and retrieval, which shortens build time. Live figures are on the [document search and RAG cost page](https://aibuildindex.com/cost/document-search-rag). The framework is open-source; costs come from model and embedding calls, vector storage, hosting, and any paid parsing or managed services.

Ask a builder whether managed parsing services are part of the design and what they will cost to run at the expected document volume, how retrieval quality will be measured on real questions, and how the index is kept up to date as documents change.

## Common questions

### What is the difference between LlamaIndex and LangChain?

They overlap, and both can build RAG systems and agents. LlamaIndex focuses on data ingestion, indexing and retrieval; [LangChain](https://aibuildindex.com/glossary/langchain) is broader, with a strong emphasis on chaining components and, through LangGraph, orchestrating agents. Some projects use both, for example LlamaIndex for retrieval inside a LangGraph agent.

### Is LlamaIndex related to Meta's Llama models?

No. Despite the similar name, LlamaIndex is an independent framework and company. It works with models from many providers, including open-weight models such as Llama, as well as commercial APIs.

## Related terms

- [LangChain](https://aibuildindex.com/glossary/langchain): LangChain is an open-source software framework, available for Python and JavaScript, that provides building blocks for applications powered by language models, such as model interfaces, prompt templates, retrieval, tool calling and agents.
- [Retrieval-augmented generation (RAG)](https://aibuildindex.com/glossary/retrieval-augmented-generation): Retrieval-augmented generation is a way of answering questions with a language model that first looks up relevant passages in your own documents, then writes an answer grounded in what it found.
- [Chunking](https://aibuildindex.com/glossary/chunking): Chunking is the step in a retrieval system that splits long documents into smaller passages before they are embedded and indexed, so that a search can return the specific section that answers a question rather than a whole file.
- [Vector database](https://aibuildindex.com/glossary/vector-database): A vector database is a data store built to save embeddings, the numeric representations of text, images or audio, and to find the stored items most similar in meaning to a query, which makes it the usual search layer behind RAG systems.
- [Intelligent document processing (IDP)](https://aibuildindex.com/glossary/intelligent-document-processing): Intelligent document processing is the automated reading of business documents such as invoices, forms and contracts, combining OCR, layout analysis and language models to turn them into checked, structured data that other systems can use.
- [AI agent](https://aibuildindex.com/glossary/ai-agent): An AI agent is software built around a language model that can plan steps, call tools such as APIs, databases or a browser, look at the results and keep going until it completes a task, rather than only replying to a single message.
