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
refactor: pass KnowledgeConfiguration directly instead of dict (#32732)
pepsic016793efbf1
diff --git a/api/services/rag_pipeline/rag_pipeline_transform_service.py b/api/services/rag_pipeline/rag_pipeline_transform_service.pyindex d0dfbc1070d..cee18387b31 100644--- a/api/services/rag_pipeline/rag_pipeline_transform_service.py+++ b/api/services/rag_pipeline/rag_pipeline_transform_service.py@@ -63,7 +63,12 @@ class RagPipelineTransformService:):node = self._deal_file_extensions(node)if node.get("data", {}).get("type") == "knowledge-index":- node = self._deal_knowledge_index(dataset, doc_form, indexing_technique, retrieval_model, node)+ knowledge_configuration = KnowledgeConfiguration.model_validate(node.get("data", {}))+ if dataset.tenant_id != current_user.current_tenant_id:+ raise ValueError("Unauthorized")+ node = self._deal_knowledge_index(+ knowledge_configuration, dataset, indexing_technique, retrieval_model, node+ )new_nodes.append(node)if new_nodes:graph["nodes"] = new_nodes@@ -155,14 +160,13 @@ class RagPipelineTransformService:def _deal_knowledge_index(self,+ knowledge_configuration: KnowledgeConfiguration,dataset: Dataset,- doc_form: str,indexing_technique: str | None,retrieval_model: RetrievalSetting | None,node: dict,):knowledge_configuration_dict = node.get("data", {})- knowledge_configuration = KnowledgeConfiguration.model_validate(knowledge_configuration_dict)if indexing_technique == "high_quality":knowledge_configuration.embedding_model = dataset.embedding_model