Merge branch 'dev' of https://github.com/MoFox-Studio/MoFox_Bot into dev
This commit is contained in:
@@ -1028,8 +1028,8 @@
|
||||
console.log(`准备更新图形: ${nodeCount} 个节点, ${edgeCount} 条边`);
|
||||
|
||||
// 对于超大数据集,进一步限制
|
||||
const MAX_RENDERABLE_NODES = 5000;
|
||||
const MAX_RENDERABLE_EDGES = 10000;
|
||||
const MAX_RENDERABLE_NODES = 10000;
|
||||
const MAX_RENDERABLE_EDGES = 20000;
|
||||
|
||||
let nodesToRender = data.nodes;
|
||||
let edgesToRender = data.edges;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user