From 84138d5049656e4dc921b811260775f2a69d0ef8 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 27 Mar 2023 04:38:47 +0100 Subject: [PATCH] Update prompt --- bin/roadmap-content.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/roadmap-content.cjs b/bin/roadmap-content.cjs index 03436bc48..de0dbe395 100644 --- a/bin/roadmap-content.cjs +++ b/bin/roadmap-content.cjs @@ -53,7 +53,7 @@ function getFilesInFolder(folderPath, fileList = {}) { function writeTopicContent(topicTitle) { console.log(`Genearting '${topicTitle}'...`); - const instruction = `Write a short paragraph explaining '${topicTitle}' in ${roadmapId}. Avoid any text similar to "In ${roadmapId}, ${topicTitle} refers to" and write it as a direct explanation of the topic.`; + const instruction = `I am writing a guide about ${roadmapId}. I have a heading called "${topicTitle}". Write me a brief summary for that heading. Content should be in markdown. Also, if you add any bullet points then use the unordered list. Do not include the heading in the content you provide. Avoid including "In this section" or "In this article" or "In this guide" in the content.`; return new Promise((resolve, reject) => { openai