Chunking documents
Lesson 12 of 20 · AI.Micro
Long documents are split into chunks before embedding, so search can return just the relevant part.
1 Café Aroma opens every day at 7 in the morning and closes at 8 at night. Espresso costs 3 euros, a latte 4 and a slice of cake 3. Customers can use the free wifi; the password changes every Monday
2 and the barista shares it on request. Dogs are welcome on the terrace and in the garden, but not inside. Groups of more than six people should book a table one day in advance. Refunds are given at the counter
and the barista shares it on request. Dogs are welcome on the terrace and in the garden, but not inside. Groups of more than six people should book a table one day in advance. Refunds are given at the counter
Café Aroma opens every day at 7 in the morning and closes at 8 at night. Espresso costs 3 euros, a latte 4 and a slice of cake 3. Customers can use the free wifi; the password changes every Monday
One vector for a whole handbook is too blurry
If the whole staff handbook is one chunk, its embedding is an average of everything, and the search can only return the full text. Drag the slider to change the chunk size.
Why split a long document into chunks?
Do it in the browser: a real generative AI tool, a short mission and instant feedback. No install.
Start this lesson — free