Learn Everything

Paths/AI Engineer/RAG / Chunking Documents

Practice Taskbeginnerubuntu:24.04Ask AI

Split a Document into Chunks

Retrieval pipelines split documents into chunk files before embedding them. Create a chunks directory holding two one-line chunks, then write a manifest.txt that lists both filenames.

Validator

⏱ 0:00

IDLE — checks run live as you type commands; submit when done

01Requirements

live checks
  • Directory ~/rag-lab/chunks exists○
  • Files chunk-01.txt and chunk-02.txt exist○
  • manifest.txt lists both chunk filenames○

02Walkthrough

1 of 8 revealed
  1. 01

    Create the lab and chunks directories

    mkdir accepts several arguments at once — this creates the lab root and, inside it, a chunks folder. Real pipelines store each chunk as its own file or row so it can be embedded and retrieved independently.

    mkdir ~/rag-lab ~/rag-lab/chunks
  2. 7 locked · each failed submit reveals one

03Stuck?

0 of 3 revealed

Take a hint without losing the lab — each one points at the thing to look at, not at the answer.

04AI Tutor

guides, never solves

Tell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?

04Notebook

saved locally in this browser

learner@lab — ubuntu:24.04

↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list