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 rerank model value is empty string (#7937)
Jyongd8b6c053a266
diff --git a/api/core/rag/datasource/retrieval_service.py b/api/core/rag/datasource/retrieval_service.pyindex 3932e90042c..9f457717949 100644--- a/api/core/rag/datasource/retrieval_service.py+++ b/api/core/rag/datasource/retrieval_service.py@@ -146,7 +146,7 @@ class RetrievalService:)if documents:- if reranking_model and retrival_method == RetrievalMethod.SEMANTIC_SEARCH.value:+ if reranking_model and reranking_model.get('reranking_model_name') and reranking_model.get('reranking_provider_name') and retrival_method == RetrievalMethod.SEMANTIC_SEARCH.value:data_post_processor = DataPostProcessor(str(dataset.tenant_id),RerankMode.RERANKING_MODEL.value,reranking_model, None, False)@@ -180,7 +180,7 @@ class RetrievalService:top_k=top_k)if documents:- if reranking_model and retrival_method == RetrievalMethod.FULL_TEXT_SEARCH.value:+ if reranking_model and reranking_model.get('reranking_model_name') and reranking_model.get('reranking_provider_name') and retrival_method == RetrievalMethod.FULL_TEXT_SEARCH.value:data_post_processor = DataPostProcessor(str(dataset.tenant_id),RerankMode.RERANKING_MODEL.value,reranking_model, None, False)