LLM extraction silently dropped listings at chunk boundaries; 2K overlap and two-step dedup fixed it

InsideDebt6345 · reddit · 2026-10-06

While building a lead-generation agent with the OpenAI Agents SDK and ZenRows, the author hit a silent data-loss bug: a 543K-character Clutch directory page was extracted in 40K-character chunks, and the prompt's instruction to skip partial listings caused records split across chunk boundaries to be skipped by both chunks.

The fix and lessons:

The pipeline extracted 78 companies from one page with none missing, though counts still vary run to run.

Original post →

More from coding & agent

coding & agent channel →