From 162709450278a6f2fa3de86d2f1034f59c74232f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kinta=E8=82=A5=E5=96=B5=E5=96=B5=E5=96=B5?= <45995071+KintaMiao@users.noreply.github.com> Date: Sun, 15 Sep 2024 08:56:58 +0800 Subject: [PATCH] fix: optimize the prompt words for front matter (#2140) --- src/queries/page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queries/page.server.ts b/src/queries/page.server.ts index bd7cc10f8..028393a05 100644 --- a/src/queries/page.server.ts +++ b/src/queries/page.server.ts @@ -113,7 +113,7 @@ const getOriginalSummary = async ({ let chain = chains.get(summaryLang) if (!chain) { const prompt = new PromptTemplate({ - template: `Summarize this in "${summaryLang}" language: + template: `Summarize this in "${summaryLang}" language, If it is a markdown file that includes front matter, Ignore the front matter. Summarize only the content after the second ---: "{text}" CONCISE SUMMARY:`, inputVariables: ["text"],