fix: remove unnecessary db_index from content field in models

--bug=1058812 --user=刘瑞斌 【知识库】多选问题批量关联分段,向量数据没有关联,导致向量检索结果为空 https://www.tapd.cn/62980211/s/1732046
This commit is contained in:
CaptainB 2025-07-15 17:48:04 +08:00
parent 922ecb983c
commit 816825d5de

View File

@ -153,7 +153,7 @@ class ListenerManagement:
@staticmethod
def embedding_by_data_list(data_list: List, embedding_model: Embeddings):
# 批量向量化
VectorStore.get_embedding_vector().batch_save(data_list, embedding_model, lambda: True)
VectorStore.get_embedding_vector().batch_save(data_list, embedding_model, lambda: False)
@staticmethod
def get_embedding_paragraph_apply(embedding_model, is_the_task_interrupted, post_apply=lambda: None):