AI Terminology
/Intermediate
Chunking
Definition
The data-preprocessing step in RAG where large documents (like a 100-page PDF) are broken down into smaller, discrete blocks of text (chunks) before being embedded into the vector database.
Explain Like I'm New
You can't eat a whole steak in one bite. You cut it into pieces. An AI can't embed a 100-page book as a single vector, because it would lose all specific details. You chop the book into 500-word paragraphs and embed them individually.
Real World Example
Using LangChain's RecursiveCharacterTextSplitter to take an employee handbook and chop it into chunks of exactly 1,000 characters, with an 'overlap' of 100 characters so sentences don't get cut in half.
Common Use Cases
- •RAG data prep
- •NLP text processing
Interview Questions
basic
- Why do developers include an 'Overlap' when chunking documents?
intermediate
- What happens to your RAG system if your Chunk Size is way too small (e.g., 10 words per chunk)?