# Document Loading

- **Canonical URL:** https://getaimath.com/dictionary/document-loading/
- **Topics:** [Retrieval-Augmented Generation (RAG)](https://getaimath.com/dictionary/category/retrieval-augmented-generation-rag/)
- **Last updated:** 2026-11-25

## What is Document Loading?

**In one sentence:** Document loading is bringing documents from sources like folders, websites, databases or apps into an AI system.

Loaders connect to sources and fetch content, often along with metadata like author and date.

![RAG (Retrieval-Augmented Generation): The Open-Book Exam — Simple cartoon comparing an AI guessing from memory and making things up versus RAG: 1. Search your real documents, 2. Hand the exact page to the AI, 3. Get a factual answer with a page citation.](https://getaimath.com/diagrams/retrieval-augmented-generation-rag.png)
*Napkin Diagram (Retrieval-Augmented Generation (RAG)): Without RAG, AI answers from blurry memory; with RAG, it opens your real documents to the right page before answering.*

## What is an example of Document Loading?

Loading all pages from a company's knowledge base into a RAG system.

## Why does Document Loading matter?

It is the first step of feeding knowledge into AI.

## Related Concepts

- [Document Parsing](https://getaimath.com/dictionary/document-parsing/): Document parsing is reading files like PDFs, Word documents or web pages and pulling out their content and structure.
- [Text Extraction](https://getaimath.com/dictionary/text-extraction/): Text extraction is pulling readable text out of files, images or web pages.
- [Indexing](https://getaimath.com/dictionary/indexing/): Indexing is organizing documents ahead of time so they can be searched quickly.
- [Chunking](https://getaimath.com/dictionary/chunking/): Chunking splits long documents into smaller pieces before turning them into embeddings for search.
- [Retrieval Pipeline](https://getaimath.com/dictionary/retrieval-pipeline/): A retrieval pipeline is the set of steps that finds and prepares information for an AI model to use.
- [Embedding Generation](https://getaimath.com/dictionary/embedding-generation/): Embedding generation is turning chunks of text into embeddings using an embedding model.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/document-loading/)
