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. |
||
|---|---|---|
| .. | ||
| rag | ||