Add: Document extraction hallucination — agent reports correct-looking JSON with wrong values#31
Open
digitalpromptmarket-beep wants to merge 1 commit into
Conversation
…g JSON with wrong values Adds a real-world example of silent data extraction errors to the Tool Hallucination failure mode. Covers how extraction tools return valid JSON with plausible but incorrect values (wrong totals, dates, vendor names), and mitigation via automated arithmetic/consistency verification.
Contributor
|
Thanks for the PR @digitalpromptmarket-beep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure Mode: Silent data extraction errors (Tool Hallucination)
Category: Tool-calling hallucination / Output corruption
Description:
When AI agents extract structured data from documents (invoices, contracts, financial reports), the output often looks perfectly valid — well-formed JSON, reasonable values, correct field names — but contains subtle errors:
These errors are particularly dangerous because they pass schema validation and human spot-checks. They only surface when someone manually re-checks the math or compares field-by-field against the original.
Real-world impact:
Mitigation:
Add a mechanical verification step between extraction and downstream action: arithmetic validation, cross-field consistency checks, and source-document comparison. This should be automated (not human review) to scale with agent throughput.
References: