You are developing a structured data-extraction system with Claude. The system pulls information from unstructured documents, validates its output with JavaScript Object Notation (JSON) schemas, and preserves high accuracy. It must gracefully manage edge cases and integrate with downstream systems.
Your extraction system uses tool_use with a JSON schema that has 12 fields and detailed descriptions, totaling about 2,500 tokens for the full tool definition. Processing documents below 150K tokens achieves 98% accuracy. For documents from 175–190K tokens, accuracy falls to 71%, and information in the final third is consistently missed. The model has a 200K-token context window.
What is the most likely cause?
Community Discussion
No comments yet. Be the first to start the discussion!
Community Discussion