Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: add return type annotation to BaseVector.create (#32475)

木之本澪f76ee7cfa481
diff --git a/api/core/rag/datasource/vdb/vector_base.py b/api/core/rag/datasource/vdb/vector_base.py
index 469978224a6..acf3465c5f5 100644
--- a/api/core/rag/datasource/vdb/vector_base.py
+++ b/api/core/rag/datasource/vdb/vector_base.py
@@ -15,7 +15,7 @@ class BaseVector(ABC):
raise NotImplementedError
@abstractmethod
- def create(self, texts: list[Document], embeddings: list[list[float]], **kwargs):
+ def create(self, texts: list[Document], embeddings: list[list[float]], **kwargs) -> list[str] | None:
raise NotImplementedError
@abstractmethod