Skip to content

Commit 816825d

Browse files
committed
fix: remove unnecessary db_index from content field in models
--bug=1058812 --user=刘瑞斌 【知识库】多选问题批量关联分段,向量数据没有关联,导致向量检索结果为空 https://www.tapd.cn/62980211/s/1732046
1 parent 922ecb9 commit 816825d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/event/listener_manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def is_the_task_interrupted():
153153
@staticmethod
154154
def embedding_by_data_list(data_list: List, embedding_model: Embeddings):
155155
# 批量向量化
156-
VectorStore.get_embedding_vector().batch_save(data_list, embedding_model, lambda: True)
156+
VectorStore.get_embedding_vector().batch_save(data_list, embedding_model, lambda: False)
157157

158158
@staticmethod
159159
def get_embedding_paragraph_apply(embedding_model, is_the_task_interrupted, post_apply=lambda: None):

0 commit comments

Comments
 (0)