LlamaIndex is a Python framework for building applications that use a large language model (LLM) with your own data. Ingestion loads that data into Documents and transforms them into Nodes, the chunks an index makes searchable. In retrieval-augmented generation (RAG), a retriever finds relevant Nodes for the question, and the LLM uses their text to write an answer. High-Level Concepts · Loading Data
Documents Become Nodes
A reader can load a file into a Document containing text and metadata. A parser such as SentenceSplitter breaks the text into chunks and creates a Node for each one. By default, the Nodes inherit metadata such as the Document’s file_name, so you can trace each chunk back to its source. Documents / Nodes
When configured to split Documents, IngestionPipeline.run() returns the resulting Nodes. You can omit the embedding step and pass those Nodes to VectorStoreIndex(nodes) to index them. If you attach a vector store, include an embedding transformation. The pipeline still returns its output and also writes Nodes that have embeddings into the store. You can then build the index with VectorStoreIndex.from_vector_store(vector_store). Ingestion Pipeline · Ingestion API Reference
The handbook example follows the path where the pipeline returns Nodes for VectorStoreIndex.
| Stage | Handbook example |
|---|---|
| Load | A Document holds the travel policy text “Trips require manager approval.” with file_name set to handbook.md. |
| Split | The pipeline returns a Node with text “Trips require manager approval.” and inherited file_name metadata of handbook.md. |
| Index | VectorStoreIndex(nodes) indexes the returned Node and its embedding, a numerical representation used for similarity search. |
| Retrieve | For “Who approves trips?”, the vector retriever compares the question’s embedding to indexed embeddings and returns the Node containing “Trips require manager approval.” |
| Synthesize | The LLM gets the question and that passage as context and answers, “A manager approves trips.” |
For splitter settings and overlap, see LlamaIndex chunking best practices.
Index Types Serve Different Queries
The index and retriever determine which evidence goes into synthesis. A vector index retrieves by embedding similarity, which suits a question like “Who approves trips?” where a matching passage can supply the answer. A summary index sends all its Nodes to synthesis by default, which fits a request to summarize the handbook. A property graph index can retrieve entities and relationships when the question asks how things connect. How Each Index Works
Retrieval and Response Synthesis
The retriever takes the question and returns candidate Nodes from the index. A configured postprocessor can filter or reorder those Nodes before synthesis. The response synthesizer then gives the LLM the question and the selected text to generate the answer. In the handbook example, the passage itself supplies the approver. Introduction to RAG
When an answer is off, check whether the supporting passage reached synthesis and whether the answer reflects it. See retrieval troubleshooting.
Vector Stores and Persistence
The vector index makes Nodes searchable by similarity. The vector store holds the embeddings used in that search. Indexed data lives in memory by default. To reuse it across runs, the index’s storage context can save it to disk. Storing
See the VectorStoreIndex guide for vector-store setup.
Where This Sits
- Build the pipeline with the LlamaIndex Python quickstart.
- Choose an interface with Query Engine vs Chat Engine.
- Compare frameworks with LangChain vs LlamaIndex and LlamaIndex vs LangChain for RAG.
Evidence and limits. The illustrative trace follows the online LlamaIndex Python framework documentation as of November 23, 2026. The example was not run.