Document Chunking Designer
Addressing headers, tables, and cross-references prevents the most common chunking failures where structural elements are split across boundaries.
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
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.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.