Skip to content

Commit

Permalink
fix: Instruct the model to only respond with the summary when summari…
Browse files Browse the repository at this point in the history
…zing content
  • Loading branch information
MohamedBassem committed Nov 24, 2024
1 parent 036554a commit b9f1a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(""));
Expand Down

0 comments on commit b9f1a59

Please sign in to comment.