mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 07:39:45 +08:00
* fix(rag): run document parsing off the event loop MinerU cloud parsing blocks end to end (upload + long polling + archive download) on a synchronous httpx.Client. document_loader.load() awaited the parser inline on the event loop, so indexing a KB stalled every other request (chat WebSockets included) for the whole duration of each PDF — same class of bug as #761/#777. Move _parse_document onto a worker thread via asyncio.to_thread. * test: prove document parsing stays off event loop --------- Co-authored-by: interia <interia@users.noreply.github.com> Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>