mirror of https://github.com/Mai-with-u/MaiBot.git
feat: 删除加载时的嵌入模型一致性检验,仅保留插入数据时的校验
parent
68537627e3
commit
407a19c021
|
|
@ -342,8 +342,6 @@ class EmbeddingManager:
|
|||
|
||||
def load_from_file(self):
|
||||
"""从文件加载"""
|
||||
if not self.check_all_embedding_model_consistency():
|
||||
raise Exception("嵌入模型与本地存储不一致,请检查模型设置或清空嵌入库后重试。")
|
||||
self.paragraphs_embedding_store.load_from_file()
|
||||
self.entities_embedding_store.load_from_file()
|
||||
self.relation_embedding_store.load_from_file()
|
||||
|
|
|
|||
Loading…
Reference in New Issue