haiku.rag/haiku_rag_slim/haiku/rag/client
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
..
__init__.py Pass fetched FetchResult to ingester metadata providers 2026-06-16 16:37:26 +03:00
agents.py Drop the multi-agent research workflow 2026-05-20 12:46:48 +03:00
documents.py Thread extract_items off the asyncio event loop 2026-06-22 13:19:38 -04:00
downloads.py Drop the multi-agent research workflow 2026-05-20 12:46:48 +03:00
exceptions.py typed UnsupportedSourceError replaces pipeline string-marker matching 2026-05-26 11:44:46 +03:00
processing.py Always use the Store-owned embedder 2026-05-29 11:36:53 +03:00
rebuild.py Split meta document attributes into a document_meta table 2026-06-12 10:17:17 +03:00
search.py Always use the Store-owned embedder 2026-05-29 11:36:53 +03:00
titles.py Extract title generation into client/titles.py 2026-04-24 14:42:53 +03:00