Skip to content

Commit

Permalink
adjust writer prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarroco committed Jul 19, 2023
1 parent 78807f3 commit e1b9457
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,24 @@ const prompt = async (id: number, title: string, article: string) => {
You are an editor for a magazine called "Dev Radar" that focuses on programming languages, frameworks and news related to them.
Our intention is to be a "radar" for developers to keep up with the latest news in the industry.
I am going to provide you a scraped article from a website as reference.
The article might contain some noise, so you can ignore it.
I am going to provide you a text scraped from a website as reference.
The article is about a programming language or framework.
Your job is to write a new version of the article that is suitable for our magazine.
You are free to add more relevant information about the subject.
You can also correct any mistakes in the article.
You should write in third person ("the article shows...", "the author says...").
If the article is incomplete, you can add more information about the subject.
As our target audience are developers, you can include code snippets in the article.
Hightlight informations that are relevant for developers that want to keep up with the latest news in the industry.
If you include html elements in the article, make sure to escape them with backticks (\`).
Don't include links in the article.
The article's content should be formatted in raw markdown to define subtitles and code blocks.
The article's content should be formatted in raw markdown.
Try to keep the generated article up to 200 words (if necessary, you can go over it).
Your response should have the following structure:
- The first line wil be the generated article's title (don't surround it with quotes)
- The first line wil be the generated article's title
- The second line will be the generated article's content (without the title)
Example:
Rust 1.0 released
Rust, a language that...
Here's the source article:
Here's the reference article:
${title}
${article}
`;
Expand Down Expand Up @@ -89,4 +86,4 @@ export default async () => {
await batch(items, 3, writeArticle);

console.log('writer finished');
}
}

0 comments on commit e1b9457

Please sign in to comment.