From 41873f41d744ab8edd48d2960bf56f0beb6fc09c Mon Sep 17 00:00:00 2001 From: Pyroboomka Date: Mon, 25 Aug 2025 17:27:03 +0300 Subject: [PATCH] Fix reranking on vllm provider (#7210) fix reranking on vllm provide Use scores instead of indicis for vllm provider --- core/llm/llms/Vllm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/Vllm.ts b/core/llm/llms/Vllm.ts index 97bd936cb..9dfd25a58 100644 --- a/core/llm/llms/Vllm.ts +++ b/core/llm/llms/Vllm.ts @@ -45,7 +45,7 @@ class Vllm extends OpenAI { // vLLM uses 'results' array instead of 'data' if (results.results && Array.isArray(results.results)) { const sortedResults = results.results.sort((a, b) => a.index - b.index); - return sortedResults.map((result) => result.index); + return sortedResults.map((result) => result.relevance_score); } throw new Error(