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: add type ignore comments for shared_task imports and clean up re… (#12099)
-LAN-d5f33212ac61
diff --git a/api/controllers/console/datasets/datasets_document.py b/api/controllers/console/datasets/datasets_document.pyindex 552a2ab3ff8..3ea77fadb23 100644--- a/api/controllers/console/datasets/datasets_document.py+++ b/api/controllers/console/datasets/datasets_document.py@@ -442,9 +442,8 @@ class DocumentBatchIndexingEstimateApi(DocumentResource):dataset_id = str(dataset_id)batch = str(batch)documents = self.get_batch_documents(dataset_id, batch)- response = {"tokens": 0, "total_price": 0, "currency": "USD", "total_segments": 0, "preview": []}if not documents:- return response, 200+ return {"tokens": 0, "total_price": 0, "currency": "USD", "total_segments": 0, "preview": []}, 200data_process_rule = documents[0].dataset_process_ruledata_process_rule_dict = data_process_rule.to_dict()info_list = []diff --git a/api/models/dataset.py b/api/models/dataset.pyindex f6c8a4511bb..567f7db4329 100644--- a/api/models/dataset.py+++ b/api/models/dataset.py@@ -628,7 +628,7 @@ class DocumentSegment(db.Model): # type: ignore[name-defined]return text-class ChildChunk(db.Model):+class ChildChunk(db.Model): # type: ignore[name-defined]__tablename__ = "child_chunks"__table_args__ = (db.PrimaryKeyConstraint("id", name="child_chunk_pkey"),@@ -910,7 +910,7 @@ class ExternalKnowledgeBindings(db.Model): # type: ignore[name-defined]updated_at = db.Column(db.DateTime, nullable=False, server_default=func.current_timestamp())-class DatasetAutoDisableLog(db.Model):+class DatasetAutoDisableLog(db.Model): # type: ignore[name-defined]__tablename__ = "dataset_auto_disable_logs"__table_args__ = (db.PrimaryKeyConstraint("id", name="dataset_auto_disable_log_pkey"),diff --git a/api/schedule/mail_clean_document_notify_task.py b/api/schedule/mail_clean_document_notify_task.pyindex 080e7811315..4861e33d585 100644--- a/api/schedule/mail_clean_document_notify_task.py+++ b/api/schedule/mail_clean_document_notify_task.py@@ -2,7 +2,7 @@ import loggingimport timeimport click-from celery import shared_task+from celery import shared_task # type: ignorefrom flask import render_templatefrom extensions.ext_mail import maildiff --git a/api/tasks/batch_clean_document_task.py b/api/tasks/batch_clean_document_task.pyindex 9e81fefaa75..f52440e6438 100644--- a/api/tasks/batch_clean_document_task.py+++ b/api/tasks/batch_clean_document_task.py@@ -2,7 +2,7 @@ import loggingimport timeimport click-from celery import shared_task+from celery import shared_task # type: ignorefrom core.rag.index_processor.index_processor_factory import IndexProcessorFactoryfrom core.tools.utils.web_reader_tool import get_image_upload_file_idsdiff --git a/api/tasks/disable_segments_from_index_task.py b/api/tasks/disable_segments_from_index_task.pyindex 97eb9a40e71..67112666e7b 100644--- a/api/tasks/disable_segments_from_index_task.py+++ b/api/tasks/disable_segments_from_index_task.py@@ -2,7 +2,7 @@ import loggingimport timeimport click-from celery import shared_task+from celery import shared_task # type: ignorefrom core.rag.index_processor.index_processor_factory import IndexProcessorFactoryfrom extensions.ext_database import dbdiff --git a/api/tasks/enable_segments_to_index_task.py b/api/tasks/enable_segments_to_index_task.pyindex ecafc99a94b..0864e05e25f 100644--- a/api/tasks/enable_segments_to_index_task.py+++ b/api/tasks/enable_segments_to_index_task.py@@ -3,7 +3,7 @@ import loggingimport timeimport click-from celery import shared_task+from celery import shared_task # type: ignorefrom core.rag.index_processor.constant.index_type import IndexTypefrom core.rag.index_processor.index_processor_factory import IndexProcessorFactory