A chunk is a text fragment created by splitting a longer document into smaller, individually searchable units. In AI systems using Retrieval Augmented Generation (RAG), documents are divided into chunks so that only the most relevant passages are retrieved when answering a query, rather than the entire document. The size of a chunk is a trade-off: too large and the chunk contains too much noise; too small and the context is missing. A common chunk size is 200 to 400 words, often with a small overlap between consecutive chunks so that information is not lost at the boundary between two chunks.
See also: RAG, vector database
