From d4422443c355966d622fb82e76cd19630a2d778c Mon Sep 17 00:00:00 2001 From: MrChengmo Date: Tue, 19 Mar 2024 17:15:15 +0800 Subject: [PATCH] fix segments --- .../core/components/retriever/baidu_vdb/baiduvdb_retriever.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py b/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py index edf2ef669..3ca4b062d 100644 --- a/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py +++ b/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py @@ -332,7 +332,7 @@ def add_segments(self, segments: Message, metadata=""): segment_vectors = segment_vectors.content vector_dims = len(segment_vectors[0]) segments = segments.content - if len(segment) == 0: + if len(segments) == 0: raise ValueError("add_segments函数 参数segment 内容为空") rows = []