Skip to main content

Chunking strategies, overlap and metadata enrichment

How do you choose chunk size and strategy for markdown/PDF docs, and why does naive fixed-character splitting fail?

Official Reference

Model Answer & Explanation

Fixed-size splitting cuts mid-sentence, mid-table, or mid-code-block, stripping headers and context. Prefer structure-aware / recursive splitting (headings, paragraphs) with ~300–600 tokens and 10–15% overlap, prepend document/section titles to each chunk (contextual retrieval), or use small-to-big parent-document retrieval (embed small chunks, return the parent section).

Follow-up Interview Question · How do you handle PDF tables and multi-column layouts before chunking?

Module Context & References

Applied AI & RAG · Popular interview theory Widely asked LLM, retrieval, grounding, agent and evaluation questions
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.