Back to Developer Roadmap

Chunking

src/data/roadmaps/ai-engineer/content/chunking@mX987wiZF7p3V_gExrPeX.md

4.01.0 KB
Original Source

Chunking

The chunking step in Retrieval-Augmented Generation (RAG) involves breaking down large documents or data sources into smaller, manageable chunks. This is done to ensure that the retriever can efficiently search through large volumes of data while staying within the token or input limits of the model. Each chunk, typically a paragraph or section, is converted into an embedding, and these embeddings are stored in a vector database. When a query is made, the retriever searches for the most relevant chunks rather than the entire document, enabling faster and more accurate retrieval.

Visit the following resources to learn more: