Back to guide/General Productivity

Document Chunking Designer

Addressing headers, tables, and cross-references prevents the most common chunking failures where structural elements are split across boundaries.

context-engineering-guidedocument_typedocument_lengthretrieval_purpose
Edit View
Prompt
Design a chunking strategy for the following document type:\n\nDocument: {{document_type}}\nLength: approximately {{document_length}}\nPurpose: {{retrieval_purpose}}\nEmbedding model: {{embedding_model}}\n\nSpecify:\n1. Optimal chunk size (in tokens) and why\n2. Overlap between chunks\n3. How to handle headers, tables, and code blocks\n4. Metadata to attach to each chunk (title, section, page, etc.)\n5. How to preserve cross-references between chunks

Variables to customize

{{document_type}}{{document_length}}{{retrieval_purpose}}{{embedding_model}}

Why this prompt works

Addressing headers, tables, and cross-references prevents the most common chunking failures where structural elements are split across boundaries.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.