fix: optimize the prompt words for front matter (#2140)
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user