From f76ee7cfa481983fcbe3b1030fa7bfe2c7e516b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E4=B9=8B=E6=9C=AC=E6=BE=AA?= Date: Mon, 23 Feb 2026 21:28:40 +0800 Subject: [PATCH] fix: add return type annotation to BaseVector.create (#32475) Co-authored-by: KinomotoMio <200703522+KinomotoMio@users.noreply.github.com> --- api/core/rag/datasource/vdb/vector_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/rag/datasource/vdb/vector_base.py b/api/core/rag/datasource/vdb/vector_base.py index 469978224a..acf3465c5f 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