Skip to main content
Loading navigation

Task Decomposition for Analysis and Hallucination Reduction

Prompt source

implementation1 lines1 sectionsNo variables0 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.