Back to Prompt Library
implementation
Task Decomposition for Analysis and Hallucination Reduction
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Agent for Complex Policy & Contract Analysis
Format
Text-first
Lines
1
Sections
1
Linked challenge
Agent for Complex Policy & Contract Analysis
Prompt source
Original prompt text with formatting preserved for inspection.
1 lines
1 sections
No variables
0 checklist items
Instruct your Claude agent to break down the 'Policy Document Analysis' task into several sub-tasks (e.g., 'Identify all clauses related to data privacy', 'Summarize implications of each identified clause'). The agent should use its `retrieve_document_chunks` tool for each sub-task to ground its answers in the document text, minimizing hallucinations. Describe how the agent's internal reasoning process (prompt engineering) facilitates this decomposition and retrieval-augmented generation. Demonstrate this with a detailed prompt example.
Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.