LlamaIndex is an open source framework and a broader ecosystem of tools for building AI applications that work with documents and private data. Originally focused on data orchestration for retrieval-augmented generation (RAG), the LlamaIndex ecosystem has expanded to include document parsing, extraction, indexing, retrieval and agentic workflows. Its current product focus is AI-powered document parsing and extraction, designed to help developers turn unstructured documents into structured, actionable data for large language models (LLMs).
At its core, LlamaIndex connects LLMs to documents and private data through a process called context augmentation—supplying external information to the model at inference time rather than retraining it. The framework addresses a fundamental limitation of LLMs: although these models are pretrained on large datasets, their pretrained weights do not inherently contain an organization’s private data or information created after training.
LlamaIndex provides mechanisms for supplying that external information at inference time—ingesting documents, parsing them into a format that LLMs can reason over, and retrieving the most relevant content at query time.
As LlamaIndex has expanded beyond its early focus on RAG, document processing has become an increasingly important part of the ecosystem. High-quality parsing helps preserve the structure and context that downstream retrieval and AI applications depend on.
The LlamaIndex ecosystem is organized around three components:
The LlamaIndex open source library—available in Python and TypeScript—is the foundation for building LLM-powered applications. Available through
The framework is centered on the following core abstractions:
LlamaIndex integrates with a wide range of LLM and embedding providers, including OpenAI, Ollama, IBM® Granite® and others. Furthermore, it can be combined with frameworks such as LangChain. LlamaIndex integration packages are installed individually from LlamaHub, keeping dependencies lean.
LlamaParse is LlamaIndex’s enterprise platform for agentic OCR and document processing. It is designed for production document pipelines that require high-fidelity parsing of complex, real-world documents: dense tables, multi-column layouts, charts, handwritten text and scanned PDFs.
LlamaParse supports over 130 document formats and exposes its capabilities through a Python SDK (
Document parsing—converting raw files into clean, LLM-readable text—is now central to LlamaIndex’s value proposition. The ecosystem provides two complementary tools for this task, designed for different use cases and complexity levels.
LiteParse is a stand-alone, open source PDF and document parsing library built for fast, lightweight, local parsing. Written in Rust and released under the Apache 2.0 license, LiteParse runs entirely on-device with no cloud dependency or proprietary LLM requirements.
LiteParse is available for multiple environments:
LiteParse accepts PDFs, DOCX, XLSX, PPTX and image files, producing output in Markdown, JSON or plain text. Its Markdown output reconstructs document structure—headings, tables, lists, images and links—from spatial layout analysis, making it well suited for feeding documents into LLMs and RAG pipelines.
Key capabilities include:
LiteParse is a strong choice for high-volume, latency-sensitive or air-gapped environments. Its complexity detection feature—which checks whether a document needs OCR or heavier processing before committing to a full parse—makes it easy to route documents intelligently: simple documents stay local, complex ones get escalated.
For documents that exceed what local parsing can handle—scanned PDFs, intricate tables, dense multi-column layouts or handwritten content—LlamaParse’s cloud parsing service is the recommended upgrade path. It applies agentic OCR to reconstruct document content with high fidelity regardless of layout complexity. Developers typically begin with LiteParse for fast local iteration and route-specific document types to LlamaParse when quality requirements demand it.
Whether using LiteParse locally or LlamaParse in the cloud, a RAG pipeline that feeds a LlamaIndex application can follow this general pattern:
This pipeline supports both simple question-answering over documents and complex agentic workflows where AI agents autonomously navigate, extract and reason over large document collections.
Retrieval-augmented generation (RAG) remains one of the primary use patterns for LlamaIndex. A RAG application allows an LLM to retrieve relevant information from a private knowledge base at inference time rather than relying solely on its pretrained weights. The retrieved information is then supplied as context to the model, subject to the model’s context window limits.
This approach is critical for generative AI applications where the relevant data—financial reports, contracts, internal documentation, research papers—was not available at training time or changes frequently.
LlamaIndex streamlines every step of the RAG pipeline with high-level APIs:
LlamaIndex also supports structured data querying, including text-to-SQL for relational databases and text-to-Pandas for tabular data. Vector store backends are available through LlamaHub integrations, covering a range of vector databases.
Beyond retrieval, LlamaIndex enables agentic applications—systems where an LLM autonomously plans and executes multi-step tasks.
The LlamaIndex framework supports building agents that operate through a reasoning loop: they assess what they know, select an appropriate tool, observe the result and decide what to do next—repeating this cycle until the task is complete. LlamaIndex supports multiple agent architectures, including ReAct-style agents that iteratively select and invoke tools, as well as more structured workflow-based pipelines.
Two important building blocks for agentic applications in LlamaIndex are tools and workflows:
LlamaParse’s Agents service extends this with a hosted environment for building and deploying document agents without managing infrastructure.
LlamaIndex’s document-centric architecture supports a wide range of enterprise and developer use cases:
Document question-answering. Ask targeted questions against large document collections—PDFs, contracts, research papers, internal knowledge bases—and return grounded responses.
Conversational applications. Build chatbots and multi-turn chat experiences that maintain a conversational state while retrieving information from private data by using LlamaIndex’s chat engine abstractions.
Structured data extraction. Use the “Extract” service to pull tables, named entities, dates, figures and custom schemas from documents at scale—converting unstructured content into database-ready records.
Agentic document workflows. Deploy agents that autonomously process document pipelines: ingesting incoming files, classifying content, extracting fields, routing outputs to downstream systems and flagging exceptions for human review.
Multimodal document understanding. Combine LiteParse’s screenshot generation with multimodal LLMs to reason over documents that mix text, charts, diagrams and images.
Benchmarking and evaluation. LlamaIndex publishes ParseBench and ExtractBench, open benchmarks for measuring the accuracy of document parsing and structured extraction pipelines across tools.
Easily design scalable AI assistants and agents, automate repetitive tasks and simplify complex processes with IBM watsonx Orchestrate.
Accelerate software delivery with Bob, your AI partner for secure, intent-aware development.
Put AI to work in your business with IBM’s industry-leading AI expertise and portfolio of solutions at your side.