Match a job Paths Subjects Questions Quizzes Pricing
Advanced Open Pro

Choosing Between Reflexion and ReWOO for a Failing Data-Extraction Agent

An agent extracts structured line items from scanned invoices using three tools: ocr_region(bbox), lookup_vendor(name), and validate_total(items, stated_total). On a sample of 50 invoices, the plain-ReAct version fails on 14 — 9 of those because it gives up after one bad OCR read on a smudged region without trying an alternate region or a different crop, and 5 because it made an early, wrong assumption about which columns were which and never revisited that assumption even though later columns clearly didn't make sense given it.

  1. Would Reflexion help with either failure category — which one, specifically, and why?
  2. Would ReWOO help with either failure category — which one, and why (or why not)?
  3. Propose the actual fix for each of the two failure categories, and explain why neither Reflexion nor ReWOO is the most direct tool for at least one of them.

Share this question

← Back to Agent Design Patterns: From Workflows to Autonomous Agents practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.