From 88522acbcb7a94bd6c8afb57112cb7ef3f5197cb Mon Sep 17 00:00:00 2001 From: Alwin Raju <34244581+alwinraju@users.noreply.github.com> Date: Thu, 18 May 2023 21:52:45 +0100 Subject: [PATCH] Changed youtube summary prompt for better formatting Changed the youtube summary prompt for better formatting by outputting the answer in markdown. Now it includes the title, summary and key takeaways as bullet points and titles. --- src/content-script/site-adapters/youtube/index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-script/site-adapters/youtube/index.mjs b/src/content-script/site-adapters/youtube/index.mjs index 648b2d9..3029ac1 100644 --- a/src/content-script/site-adapters/youtube/index.mjs +++ b/src/content-script/site-adapters/youtube/index.mjs @@ -53,8 +53,8 @@ export default { subtitleContent = replaceHtmlEntities(subtitleContent) return cropText( - `Provide a brief summary of the following video using concise language, still including all the important details, and incorporating the video title.` + - `The video title is "${title}". The subtitle content is as follows:\n${subtitleContent}`, + `Provide a structured summary of the following video in markdown format, focusing on key takeaways and crucial information, and ensuring to include the video title. The summary should be easy to read and concise, yet comprehensive.` + + `The video title is "${title}". The subtitle content is as follows:\n${subtitleContent}`, ) } catch (e) { console.log(e)