Files
DeepTutor/deeptutor/services
Bingxi Zhao (Frank) 760f7d7a22 fix(rag): run GraphRAG off the server's uvloop loop (#695)
`graphrag_llm` calls `nest_asyncio2.apply()` at import time, and that patch
refuses uvloop — the loop `uvicorn[standard]` gives the backend on
macOS/Linux. So the first GraphRAG import raised "Can't patch loop of type
<class 'uvloop.Loop'>" and indexing died before it started; the reporter's
workaround was to force UVICORN_LOOP=asyncio for the whole app.

Drive every GraphRAG entry point from a worker thread that owns a stock
asyncio loop: the import-time patch and GraphRAG's own nested
`run_until_complete` calls get the reentrant loop they expect, and the
server's loop is left alone. The adapter stays the only graphrag-aware
module, so its function-local imports now also decide where that patch
lands.

Completes #695 — the settings.yaml `$` escape and the `cache.type` fix
landed in #699.
2026-07-26 20:47:30 +08:00
..
2026-07-24 03:06:58 +08:00
2026-06-17 00:56:27 +08:00
2026-07-24 03:06:58 +08:00
2026-06-11 20:03:34 +08:00
2026-05-08 02:36:24 +08:00
2026-07-04 16:40:08 +08:00
2026-06-17 00:56:27 +08:00
2026-06-11 20:03:34 +08:00
2026-07-24 18:16:04 +08:00
2026-06-18 00:22:48 +08:00
2026-06-11 20:03:34 +08:00
2026-07-24 03:06:58 +08:00
2026-06-17 00:56:27 +08:00
2026-06-18 00:22:48 +08:00
2026-06-17 00:56:27 +08:00