LlamaIndex Hub
Isometric white llama standing over stacked document blocks on a dark board, linked to glowing nodes that stand for indexed retrieval
fundamentals

LlamaIndex Ingestion, Indexing and Retrieval for RAG

Follow one document through LlamaIndex ingestion, indexing and retrieval. See how documents become nodes and how those nodes support a RAG answer.

By LlamaIndex Hub Editorial · ·Updated · 3 min read

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

Evidence and limits. The illustrative trace follows the online LlamaIndex Python framework documentation as of November 23, 2026. The example was not run.

Sources

  1. LlamaIndex: High-Level Concepts
  2. LlamaIndex: Loading Data
  3. LlamaIndex: Documents / Nodes
  4. LlamaIndex: Ingestion Pipeline
  5. LlamaIndex: Ingestion API Reference
  6. LlamaIndex: How Each Index Works
  7. LlamaIndex: Introduction to RAG
  8. LlamaIndex: Storing

Related