fix:统一段落hash命名空间格式,确保与EmbeddingStore一致

This commit is contained in:
墨梓柒
2025-08-10 20:43:53 +08:00
parent be5fc2d4d9
commit 22a625ce46
2 changed files with 6 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ if global_config.lpmm_knowledge.enable:
# 数据比对Embedding库与KG的段落hash集合
for pg_hash in kg_manager.stored_paragraph_hashes:
# 使用与EmbeddingStore中一致的命名空间格式
key = f"paragraph-{pg_hash}"
if key not in embed_manager.stored_pg_hashes:
logger.warning(f"KG中存在Embedding库中不存在的段落{key}")