fix: optimize the prompt words for front matter (#2140)

This commit is contained in:
Kinta肥喵喵喵
2024-09-15 08:56:58 +08:00
committed by GitHub
parent 1ee4901730
commit 1627094502
+1 -1
View File
@@ -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"],