feat(visualizer): 增加可渲染节点和边的最大限制,提高图形处理能力

This commit is contained in:
Windpicker-owo
2025-11-13 17:26:45 +08:00
parent 1e8042de00
commit 84013783ca
2 changed files with 5 additions and 5 deletions

View File

@@ -84,12 +84,12 @@ def format_memory_for_prompt(memory: Memory, include_metadata: bool = False) ->
if object_node is not None:
# 有完整的主谓宾
if core_relation:
parts.append(f"{subject_text}{topic_text}{core_relation}{object_node.content}")
parts.append(f"{subject_text}-{topic_text}{core_relation}{object_node.content}")
else:
parts.append(f"{subject_text}{topic_text}{object_node.content}")
parts.append(f"{subject_text}-{topic_text}{object_node.content}")
else:
# 只有主谓
parts.append(f"{subject_text}{topic_text}")
parts.append(f"{subject_text}-{topic_text}")
# 添加属性信息
if attributes: