diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-11-24 23:16:36 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-11-24 23:16:36 +0000 |
| commit | b9f1a59d9997cc24239a9d4778110c0f6631fbc8 (patch) | |
| tree | 25d336c5efb508b1876a552bdb5658355bf20ae1 /packages/shared/prompts.ts | |
| parent | 036554ac5376cb83d43daeb11ff204e175fb1244 (diff) | |
| download | karakeep-b9f1a59d9997cc24239a9d4778110c0f6631fbc8.tar.zst | |
fix: Instruct the model to only respond with the summary when summarizing content
Diffstat (limited to 'packages/shared/prompts.ts')
| -rw-r--r-- | packages/shared/prompts.ts | 2 |
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("")); |
