mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 16:12:55 +00:00
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:
parent
922ecb983c
commit
816825d5de
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue