mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 17:29:35 +08:00
_describe_group handled only asyncio.TimeoutError, so any other exception out of the batcher propagated through asyncio.gather, aborted _load_image_nodes, and took the whole document ingest with it. Every sibling failure path in the same function skips and logs instead: missing or non-multimodal embedding client, unavailable LLM, reader OSError, empty captions. The batch group was the one seam that re-raised. The current batcher folds its own errors into [None] * len(images), so this is defensive: the loader should not have to depend on that internal detail to keep captions best-effort, and the batch path is opt-in and the least exercised. The new test replaces the batcher with one that raises and asserts the ingest still returns. Signed-off-by: cgycorey <cgycorey@users.noreply.github.com>