Prompt LibraryEngineering
RAG Chunking Strategy Design Prompt
Design a structure-aware chunking plan for a specific document type.
The prompt
Document type: {{doc_type}}
Sample document: {{sample}}
Propose a chunking strategy: what structural boundaries to split on, target chunk size range, how much overlap (if any) and why, and what metadata to attach to every chunk (heading path, page, section id).
Identify the one failure mode this document type is most prone to (e.g. tables split mid-row, numbered lists losing their intro sentence) and how the strategy avoids it.Replace the {{fields}} with your own context and tighten the rules to match your domain.
More Engineering prompts
LLM Reranking Prompt for RAG Retrieval
Use a model as a cross-encoder-style reranker for retrieved chunks.
LLM Model Routing Policy Design Prompt
Decide which requests go to a cheap model vs a frontier model.
Streaming-Safe LLM Output Format Prompt
Structure output so it stays useful when streamed token by token.




