tweak: adjust compaction to clearly indicate the convo history (#37195)
This commit is contained in:
@@ -198,6 +198,7 @@ export const buildPrompt = (input: { readonly previousSummary?: string; readonly
|
|||||||
? `Update the anchored summary below using the conversation history above.\nPreserve still-true details, remove stale details, and merge in the new facts.\n<previous-summary>\n${input.previousSummary}\n</previous-summary>`
|
? `Update the anchored summary below using the conversation history above.\nPreserve still-true details, remove stale details, and merge in the new facts.\n<previous-summary>\n${input.previousSummary}\n</previous-summary>`
|
||||||
: "Create a new anchored summary from the conversation history.",
|
: "Create a new anchored summary from the conversation history.",
|
||||||
SUMMARY_TEMPLATE,
|
SUMMARY_TEMPLATE,
|
||||||
|
"The following is the conversation history:",
|
||||||
...input.context,
|
...input.context,
|
||||||
].join("\n\n")
|
].join("\n\n")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user