RAG and working with documents · Lesson 2
Chunking, embeddings, retrieval
Where the typical RAG errors live and how to avoid them.
Chunking
- 500-1000 tokens per chunk — a starting point. For reference, OpenAI file search splits files into 800-token chunks with a 400-token overlap by default.
- An overlap of 50-100 tokens reduces "meaning breaks."
- Logical boundaries (paragraph, section) are better than arbitrary ones.
- Save metadata: doc_id, page, section.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


