haiku.rag/haiku_rag_slim/haiku
Chris McDonough 09e78ef46a Thread extract_items off the asyncio event loop
Moves CPU-bound docling document item extraction into worker threads
via asyncio.to_thread so the event loop stays responsive during
ingestion. The extract_items calls are hoisted out of the write lock
(they are pure computation with no DB I/O) and run with placeholder
document IDs that are patched after the DB create returns.

Fixes #453.
2026-06-22 13:19:38 -04:00
..
rag Thread extract_items off the asyncio event loop 2026-06-22 13:19:38 -04:00