Files
Saurav Panda 658d1ca623 fix(extraction): auto-fallback from JS to markdown when extract_with_script returns empty
When JS codegen extraction returns empty results ([], {}, {key: []}),
automatically fall back to markdown-based LLM extraction instead of
returning empty data that causes the agent to retry blindly.

Adds _is_empty_data() helper to detect effectively empty extraction
results including nested patterns like {"products": []}.

Addresses ~5 eval failures where extract_with_script returned [] on
pages with lazy-loaded or shadow DOM content that JS couldn't reach.
2026-01-31 19:06:06 -08:00
..
2025-01-19 17:16:53 -08:00