Chunking
Dividing source text into smaller passages so a system can process, index, or retrieve relevant sections.
Read this term in ArabicChunking divides source text into smaller passages for processing, indexing, or retrieval. Instead of treating an entire long document as one unit, a system can work with sections that are more focused on a particular question.
The division may use a fixed size, document structure, or other boundaries. The appropriate choice depends on the content and the system; there is no single chunk size that is best for every document.
A useful passage keeps the necessary condition
Imagine a hypothetical workshop guide stating that recordings are available to certain plans, followed by an exception for one workshop. If the division separates the general rule from the exception without preserving the relationship, a retrieved passage may provide an incomplete answer.
That makes chunking part of knowledge ingestion, rather than a cosmetic formatting step. Headings, lists, tables, and the relationships between neighboring sections can affect whether a passage makes sense when retrieved on its own.
Very small passages may lose qualifications or the subject of a sentence. Very large passages may combine several topics and make relevant information harder to isolate. Some designs include overlapping text, but overlap does not guarantee that every necessary dependency is preserved.
The result should therefore be checked with questions whose answers depend on conditions, not just simple fact lookups. Chunking prepares units of information; it does not decide which source is authoritative or guarantee that the final response includes everything needed for a correct answer.