Skip to content

Commit

Permalink
fix: optimize the prompt words for front matter (#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
KintaMiao authored Sep 15, 2024
1 parent 1ee4901 commit 1627094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queries/page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 1627094

Please sign in to comment.