Skip to content

Commit

Permalink
improve prompts not to reference "the text"
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerr committed Nov 7, 2023
1 parent 1721f07 commit b4c9589
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
value="-"></empty>
<summarize jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Summarize"
value="As the author, summarize the text by capturing its main ideas in the style the text is written. Ensure it's much shorter than the original. Identify the purpose and goal of the text, pinpoint key points of all topical sections. Write clear and simply, ensuring accuracy and completeness."></summarize>
value="As the author, summarize the text by capturing its main ideas in the style the text is written, as it could be put in front of the text. Ensure it's much shorter than the original. Identify the purpose and goal of the text, pinpoint key points of all topical sections. Write clear and simply, ensuring accuracy and completeness."></summarize>
<introduction jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Introduction"
value="Please write an eloquent introduction for the text, in the style the text is written."></introduction>
value="Please write an eloquent introduction for the text, in the style the text is written, as it could be put in front of the text."></introduction>
<conclusion jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Conclusion"
value="Please write an eloquent conclusion for the text, in the style the text is written."></conclusion>
value="Please write an eloquent conclusion for the text, in the style the text is written, as it could be put after the text."></conclusion>
<expand jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Expand"
value="Using the provided notes as inspiration, write a text that expresses the main ideas and themes that are present. Use a businesslike informative style."></expand>
Expand All @@ -22,7 +22,7 @@
value="Please extend the text with more details and elaboration while maintaining the current tone and style."></extend>
<abstract jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Abstract"
value="Please write an abstract for the text that provides a concise overview of the key points and main themes."></abstract>
value="Please write an abstract for the text that provides a concise overview of the key points and main themes, as it could be put in front of the text."></abstract>
<headline jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Headline"
value="Please write a headline for the text. Print just the raw headline, no explanations and no quotes. Use a businesslike informative style."></headline>
Expand All @@ -45,14 +45,14 @@ Do also fix orthographical and grammar errors."></improve>
value="Please create a description for a web page with the following text, usable for search engine optimization (SEO)."></seo_description>
<teaser jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Teaser"
value="Please write a brief, engaging teaser for the text. It should pique the reader's interest and encourage them to read the full content."></teaser>
value="Please write a brief, engaging teaser for the text, as it could be used for a link to the text. It should pique the reader's interest and encourage them to read the full content."></teaser>
<rewrite_for_different_audience jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Rewrite for Different Audience"
value="Please rewrite the text to suit a different audience:
"></rewrite_for_different_audience>
<bullet_point_summary jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Bullet Point Summary"
value="Please summarize the main points of the text as a list of bullet points."></bullet_point_summary>
value="Please summarize the main points of the text as a list of bullet points, as it could be put in front of the text."></bullet_point_summary>
<bab_framework_text jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="BAB Framework Text"
value="Please write a complete text using the Before-After-Bridge (BAB) framework. Start by describing the problem, then envision the improvements, and finally introduce the solution that makes this transformation possible."></bab_framework_text>
Expand All @@ -61,7 +61,7 @@ Do also fix orthographical and grammar errors."></improve>
value="Please write a complete text using the AIDA framework. Start by capturing attention, then generate interest, induce desire, and finally, call for action."></aida_framework_text>
<slogan jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="Slogan"
value="Based on the given text, please create a catchy and memorable slogan that captures its main theme."></slogan>
value="Based on the given text, please create a catchy and memorable slogan that captures its main theme. Output it as it could be put in front of the text."></slogan>
<cta jcr:primaryType="nt:unstructured" sling:resourceType="nt:unstructured"
text="CTA"
value="Based on the text, create a call to action that encourages the reader to take the next step, and clearly conveys the unique value proposition to the reader."></cta>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Execute a prompt on a text.
---------- system ----------
You are a professional editor assistant. Generate text according to the prompt, and then print it without any additional comments. Do not mention the prompt. Use the style and tone with which the input text is written.
You are a professional editor assistant. Generate text according to the prompt, and then print it without any additional comments. Do not mention the prompt or the text or the act of text retrieval. Use the style and tone with which the input text is written. Write your response so that it could appear as it is in the text, without any comments or discussion.
---------- user ----------
Please retrieve the text for which you are going to execute a prompt, and print exactly that text, without any additional comments.
---------- assistant ----------
Expand Down
14 changes: 7 additions & 7 deletions composum/bundle/src/main/resources/create/predefinedprompts.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"---": "",
"Summarize": "As the author, summarize the text by capturing its main ideas in the style the text is written. Ensure it's much shorter than the original. Identify the purpose and goal of the text, pinpoint key points of all topical sections. Write clear and simply, ensuring accuracy and completeness.",
"Introduction": "Please write an eloquent introduction for the text, in the style the text is written.",
"Conclusion": "Please write an eloquent conclusion for the text, in the style the text is written.",
"Summarize": "As the author, summarize the text by capturing its main ideas in the style the text is written, as it could be put in front of the text. Ensure it's much shorter than the original. Identify the purpose and goal of the text, pinpoint key points of all topical sections. Write clear and simply, ensuring accuracy and completeness.",
"Introduction": "Please write an eloquent introduction for the text, in the style the text is written, as it could be put in front of the text.",
"Conclusion": "Please write an eloquent conclusion for the text, in the style the text is written, as it could be put after the text.",
"Expand": "Using the provided notes as inspiration, write a text that expresses the main ideas and themes that are present. Use a businesslike informative style.",
"Extend": "Please extend the text with more details and elaboration while maintaining the current tone and style.",
"Abstract": "Please write an abstract for the text that provides a concise overview of the key points and main themes.",
"Abstract": "Please write an abstract for the text that provides a concise overview of the key points and main themes, as it could be put in front of the text.",
"Headline": "Please write a headline for the text. Print just the raw headline, no explanations and no quotes. Use a businesslike informative style.",
"10 headline suggestions": "Please write 10 suggestions for a headline for the text. Print just the raw headline, no explanations and no quotes. Use a businesslike informative style.",
"10 headline + subheadline suggestions": "Please write 10 suggestions for a headline and a subheading for the text. For each suggestion print just the raw headline and in the next line a subheading. Please no explanations and no surrounding with quotes. Use a businesslike informative style.",
"Question": "Please answer the following question based on the given text:\n",
"Improve": "Print improved version of the text into a businesslike informative style.\nDo also fix orthographical and grammar errors.",
"SEO Description": "Please create a description for a web page with the following text, usable for search engine optimization (SEO).",
"Teaser": "Please write a brief, engaging teaser for the text. It should pique the reader's interest and encourage them to read the full content.",
"Teaser": "Please write a brief, engaging teaser for the text, as it could be used for a link to the text. It should pique the reader's interest and encourage them to read the full content.",
"Rewrite for Different Audience": "Please rewrite the text to suit a different audience: \n",
"Bullet Point Summary": "Please summarize the main points of the text as a list of bullet points.",
"Bullet Point Summary": "Please summarize the main points of the text as a list of bullet points, as it could be put in front of the text",
"BAB Framework Text": "Please write a complete text using the Before-After-Bridge (BAB) framework. Start by describing the problem, then envision the improvements, and finally introduce the solution that makes this transformation possible.",
"AIDA Framework Text": "Please write a complete text using the AIDA framework. Start by capturing attention, then generate interest, induce desire, and finally, call for action.",
"Slogan": "Based on the given text, please create a catchy and memorable slogan that captures its main theme.",
"Slogan": "Based on the given text, please create a catchy and memorable slogan that captures its main theme. Output it as it could be put in front of the text.",
"CTA": "Based on the text, create a call to action that encourages the reader to take the next step, and clearly conveys the unique value proposition to the reader.",
"Markdown to HTML": "Convert the following text from Markdown to HTML:\n\n"
}

0 comments on commit b4c9589

Please sign in to comment.