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 the return with wrong datatype of segment (#3525)
Jyong9e6d4eeb9277
diff --git a/api/core/docstore/dataset_docstore.py b/api/core/docstore/dataset_docstore.pyindex 9a051fd4cb6..7567493b9f9 100644--- a/api/core/docstore/dataset_docstore.py+++ b/api/core/docstore/dataset_docstore.py@@ -84,7 +84,7 @@ class DatasetDocumentStore:if not isinstance(doc, Document):raise ValueError("doc must be a Document")- segment_document = self.get_document(doc_id=doc.metadata['doc_id'], raise_error=False)+ segment_document = self.get_document_segment(doc_id=doc.metadata['doc_id'])# NOTE: doc could already exist in the store, but we overwrite itif not allow_update and segment_document: