From 2547d04b9d4e99195eec4a32777f8c4a48e7d2f5 Mon Sep 17 00:00:00 2001 From: wangwei Date: Thu, 23 Jul 2026 14:03:43 +0800 Subject: [PATCH] chore: enable Cross-Encoder reranker Sandbox verification via /status/models/ping was inconclusive: the gateway (6.86.80.4:30080) is unreachable from this environment entirely (embedding role failed with the identical connection-timeout pattern, which is a feature that definitely works in real deployment) -- not evidence that /rerank specifically is unsupported. Reranker code already has graceful TEI/Cohere fallback + falls back to unranked order on any failure, so this is zero-risk to retrieval even if misconfigured. Please verify via POST /status/models/ping in an environment with real gateway access; revert RERANKER_ENABLED to false if that shows a genuine error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 6a3fae5..3a3459d 100644 --- a/.env +++ b/.env @@ -102,7 +102,7 @@ DOCUMENT_PARSE_ARTIFACT_PREFIX=artifacts PARSER_FAILURE_MODE=fail # ===== Reranker 配置 ===== -RERANKER_ENABLED=false +RERANKER_ENABLED=true RERANKER_BASE_URL=http://6.86.80.4:30080/v1 RERANKER_MODEL=BAAI/bge-reranker-v2-m3 RERANKER_API_KEY=sk-fVr9KmDZNC4pGDBQj0EUWz9bDmFzNxjYC9EzZpe2bVDsxtz8