Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix #1637 (#1638)
WangBooth53be4d27127f
diff --git a/api/core/model_providers/models/reranking/xinference_reranking.py b/api/core/model_providers/models/reranking/xinference_reranking.pyindex 0efcf189f01..47c1c6cd01e 100644--- a/api/core/model_providers/models/reranking/xinference_reranking.py+++ b/api/core/model_providers/models/reranking/xinference_reranking.py@@ -1,12 +1,11 @@import logging-from typing import Optional, List--from langchain.schema import Document-from xinference_client.client.restful.restful_client import Client+from typing import List, Optionalfrom core.model_providers.error import LLMBadRequestErrorfrom core.model_providers.models.reranking.base import BaseRerankingfrom core.model_providers.providers.base import BaseModelProvider+from langchain.schema import Document+from xinference_client.client.restful.restful_client import Clientclass XinferenceReranking(BaseReranking):@@ -48,7 +47,7 @@ class XinferenceReranking(BaseReranking):)# score threshold checkif score_threshold is not None:- if result.relevance_score >= score_threshold:+ if result['relevance_score'] >= score_threshold:rerank_documents.append(rerank_document)else:rerank_documents.append(rerank_document)