aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-11-24 23:16:36 +0000
committerMohamed Bassem <me@mbassem.com>2024-11-24 23:16:36 +0000
commitb9f1a59d9997cc24239a9d4778110c0f6631fbc8 (patch)
tree25d336c5efb508b1876a552bdb5658355bf20ae1 /packages/shared
parent036554ac5376cb83d43daeb11ff204e175fb1244 (diff)
downloadkarakeep-b9f1a59d9997cc24239a9d4778110c0f6631fbc8.tar.zst
fix: Instruct the model to only respond with the summary when summarizing content
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/prompts.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/shared/prompts.ts b/packages/shared/prompts.ts
index d741030a..82c9ba6e 100644
--- a/packages/shared/prompts.ts
+++ b/packages/shared/prompts.ts
@@ -57,7 +57,7 @@ export function buildSummaryPrompt(
contextLength: number,
) {
const constructPrompt = (c: string) => `
- Summarize the following content in a 3-4 sentences in ${lang}:
+ Summarize the following content in 3-4 sentences in ${lang}, responding ONLY with the summary:
${c}`;
const promptSize = calculateNumTokens(constructPrompt(""));