Introduction
When working with large texts, it can be hard to process or analyze everything at once. Breaking text into smaller parts helps manage and understand the content better.
Imagine trying to read a very long book all at once—it would be overwhelming. Instead, you read it chapter by chapter or page by page. Sometimes you reread a few lines from the previous page to remember the story better.
┌───────────────┐
│ Full Text │
└──────┬────────┘
│ Split into
▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Chunk 1 │ │ Chunk 2 │ │ Chunk 3 │
│ (e.g., para) │ │ (e.g., para) │ │ (e.g., para) │
└───────────────┘ └───────────────┘ └───────────────┘
▲ ▲ ▲
│<----Overlap--->│ │