Refine story summary prompts and vector sync
This commit is contained in:
@@ -91,11 +91,11 @@ function cleanSummary(summary) {
|
||||
function buildSystemPreamble() {
|
||||
return [
|
||||
"以上内容为因上下文窗口限制保留的可见历史",
|
||||
"【剧情记忆】为对以上可见、不可见历史的总结",
|
||||
"1) 【世界状态】属于硬约束",
|
||||
"2) 【事件/证据/碎片/人物弧光】可用于补全上下文与动机。",
|
||||
"以下【剧情记忆】是对可见与不可见历史的总结:",
|
||||
"• 【世界约束】记录着已确立的事实",
|
||||
"• 其余部分是过往经历的回忆碎片",
|
||||
"",
|
||||
"请阅读并内化以下剧情记忆:",
|
||||
"请内化这些记忆:",
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ function buildNonVectorPrompt(store) {
|
||||
|
||||
if (data.world?.length) {
|
||||
const lines = formatWorldLines(data.world);
|
||||
sections.push(`[世界约束] 规则手册,请严格遵守\n${lines.join("\n")}`);
|
||||
sections.push(`[世界约束] 已确立的事实\n${lines.join("\n")}`);
|
||||
}
|
||||
|
||||
if (data.events?.length) {
|
||||
@@ -602,7 +602,7 @@ async function buildVectorPrompt(store, recallResult, causalById, queryEntities
|
||||
|
||||
// 1. 世界约束
|
||||
if (assembled.world.lines.length) {
|
||||
sections.push(`[世界约束] 规则手册,请严格遵守\n${assembled.world.lines.join("\n")}`);
|
||||
sections.push(`[世界约束] 已确立的事实\n${assembled.world.lines.join("\n")}`);
|
||||
}
|
||||
|
||||
// 2. 核心经历
|
||||
|
||||
Reference in New Issue
Block a user