mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:19:43 +08:00
* 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>