lipeh1
681b23766f
feat(rag): support local rerankers for LightRAG queries ( #3009 )
...
* feat(rag): support local rerankers for LightRAG queries
Allow administrators to select a cross-encoder alongside the native LightRAG role models. Run scoring in a reusable worker and partition cached answers by reranker so model changes take effect on existing indexes.
Refs #2701
* fix(api): refresh the router index for LightRAG settings
* fix(rag): run LightRAG reranking in the shared reranker worker
anyio's process pool re-runs the server's __main__ file by path. When the
backend runs as `python -m deeptutor_cli.main serve` (the desktop app),
that file's relative imports fail, so every rerank call failed with
'Error during worker process initialization' and LightRAG silently kept
the original chunk order. Reuse the python -m reranker worker that the
LlamaIndex pipeline already uses.
---------
Co-authored-by: lipeih <lipeihan@eazytec.com >
Co-authored-by: zszz3 <zszz3@users.noreply.github.com >
2026-11-30 18:46:49 +08:00
..
2026-11-06 02:04:52 +08:00
2026-10-26 10:40:14 -04:00
2026-04-20 19:46:41 +08:00
2026-09-03 15:20:13 +08:00
2026-10-27 22:07:06 +00:00
2026-06-11 20:03:34 +08:00
2026-07-14 19:59:23 +08:00
2026-10-31 17:15:58 +08:00
2026-11-30 04:19:49 -03:00
2026-11-14 23:11:57 +08:00
2026-09-01 22:24:29 +08:00
2026-09-01 22:24:29 +08:00
2026-11-30 04:11:28 -03:00
2026-09-01 22:24:29 +08:00
2026-11-29 15:28:55 +08:00
2026-11-10 00:47:45 +08:00
2026-11-30 15:49:44 +08:00
2026-09-29 02:17:28 -07:00
2026-09-02 04:09:11 +08:00
2026-10-27 22:03:37 +00:00
2026-09-03 15:20:13 +08:00
2026-09-01 22:24:29 +08:00
2026-11-28 13:09:15 -03:00
2026-10-08 12:40:42 +08:00
2026-09-01 22:24:29 +08:00
2026-09-02 02:00:14 +00:00
2026-09-01 22:24:29 +08:00
2026-10-29 18:11:52 +08:00
2026-11-15 01:20:53 +08:00
2026-09-01 22:24:29 +08:00
2026-10-31 01:53:57 -04:00
2026-11-30 05:17:20 -03:00
2026-09-01 22:24:29 +08:00
2026-10-07 20:50:55 +08:00
2026-09-30 00:01:29 +08:00
2026-09-11 16:46:46 +08:00
2026-10-07 20:22:32 +08:00
2026-11-30 18:46:49 +08:00
2026-10-07 20:28:50 +08:00
2026-10-31 21:56:27 -04:00
2026-10-08 03:11:15 +08:00
2026-09-23 10:49:20 +08:00
2026-09-01 22:24:29 +08:00
2026-11-28 19:41:47 +08:00
2026-09-01 22:24:29 +08:00
2026-10-22 12:44:45 +08:00
2026-10-01 09:15:57 -07:00
2026-09-01 22:24:29 +08:00
2026-09-01 22:24:29 +08:00
2026-10-07 20:28:50 +08:00
2026-10-07 20:28:50 +08:00
2026-10-26 22:13:34 +08:00
2026-09-25 19:35:32 +08:00
2026-10-28 12:28:20 +08:00
2026-09-02 04:09:11 +08:00
2026-09-01 22:24:29 +08:00
2026-11-14 22:57:24 +08:00
2026-09-22 21:36:27 +08:00
2026-10-29 00:36:18 +08:00
2026-11-09 04:47:34 +00:00
2026-09-21 14:50:02 +08:00
2026-10-07 20:37:27 +08:00
2026-10-08 12:35:32 +08:00
2026-09-29 06:17:54 -07:00
2026-11-10 00:12:58 +08:00
2026-11-10 00:12:58 +08:00
2026-11-28 13:09:15 -03:00
2026-10-29 13:33:14 +08:00
2026-10-16 17:21:34 +02:00
2026-06-21 14:43:41 +08:00
2026-09-23 10:47:53 +08:00
2026-10-30 15:55:21 +08:00
2026-09-14 01:28:46 +08:00
2026-10-08 02:48:50 +08:00
2026-10-28 01:02:29 +08:00
2026-09-14 01:43:35 +08:00
2026-09-27 04:55:15 +08:00
2026-08-28 03:09:00 -07:00
2026-09-03 01:38:54 +08:00
2026-09-23 10:47:52 +08:00
2026-11-14 23:16:33 +08:00
2026-10-07 20:37:55 +08:00
2026-11-28 20:05:55 +08:00
2026-09-01 22:24:29 +08:00
2026-09-01 22:24:29 +08:00
2026-11-16 02:17:36 +08:00
2026-10-28 01:02:29 +08:00
2026-09-27 11:38:29 +08:00
2026-08-02 13:07:32 +08:00
2026-10-07 20:22:03 +08:00
2026-10-19 00:53:44 +08:00
2026-11-12 16:58:52 +08:00
2026-11-14 23:00:04 +08:00
2026-09-21 02:30:40 +08:00
2026-08-07 21:09:20 +08:00
2026-09-01 22:24:29 +08:00
2026-10-04 21:35:00 +08:00
2026-10-04 21:35:00 +08:00
2026-09-28 14:58:51 -07:00
2026-09-03 15:20:13 +08:00
2026-11-28 13:09:15 -03:00