feat: 删除加载时的嵌入模型一致性检验,仅保留插入数据时的校验

This commit is contained in:
墨梓柒
2025-06-16 20:43:07 +08:00
parent 68537627e3
commit 407a19c021

View File

@@ -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()