Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: correct wrong vLLM rerank model (#5399)

Yongteng Lei0284248c9382
diff --git a/rag/llm/__init__.py b/rag/llm/__init__.py
index ef0863f57f..bcea2e558c 100644
--- a/rag/llm/__init__.py
+++ b/rag/llm/__init__.py
@@ -247,7 +247,7 @@ RerankModel = {
"NVIDIA": NvidiaRerank,
"LM-Studio": LmStudioRerank,
"OpenAI-API-Compatible": OpenAI_APIRerank,
- "VLLM": OpenAI_APIRerank,
+ "VLLM": CoHereRerank,
"Cohere": CoHereRerank,
"TogetherAI": TogetherAIRerank,
"SILICONFLOW": SILICONFLOWRerank,