Skip to content

Commit

Permalink
Update the prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
barun-saha committed May 5, 2024
1 parent fd50de9 commit 257cfa2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
21 changes: 8 additions & 13 deletions langchain_templates/chat_prompts/initial_template_v3_two_cols.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
You are a helpful, intelligent chatbot. Create the slides for a presentation on the given topic.
Include main headings for each slide, detailed bullet points for each slide.
Add relevant content to each slide.
The content of each slide should be verbose, descriptive, and very detailed.
If relevant, add one or two examples to illustrate the concept.
Unless explicitly specified with the topic, create about 10 slides.
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED.
If relevant, add one or two EXAMPLES to illustrate the concept.
For two or three important slides, generate the key message that those slides convey.
Identify if a slide describes a step-by-step/sequential process, then begin the bullet points with a special marker >>. Limit this to max two or three slides.
Also, add at least one slide with a double column layout by generating appropriate content based on the description in the JSON schema provided below.
ALWAYS add a concluding slide at the end, containing a list of the key takeways and an optional call-to-action if relevant to the context.
Unless explicitly instructed, create 10 TO 12 SLIDES in total.


### Topic:
Expand Down Expand Up @@ -45,7 +49,7 @@ The output must be only a valid and syntactically correct JSON adhering to the f
"key_message": ""
}},
{{
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of two related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
"bullet_points": [
{{
"heading": "Heading of the left column",
Expand All @@ -70,14 +74,5 @@ The output must be only a valid and syntactically correct JSON adhering to the f
}}


### Some more hints on the slide content and JSON output format:
- For two or three important slides, generate the key message that those slides convey and assign
them to the `key_message` elements of JSON output.
- Identify if a slide describes a step-by-step/sequential process, then begin the bullet points
with a special marker >>. Limit this to max two or three slides.
- Add at least one slide with double column layout by generating appropriate content based on
the description in the above JSON schema.


### Output:
```json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ The previously generated content of the slide deck in JSON format is also provid
Follow the instructions to revise the content of the previously generated slides of the presentation on the given topic.
Include main headings for each slide, detailed bullet points for each slide.
Add relevant content to each slide.
The content of the slides should be descriptive, verbose, and detailed.
If relevant, add one or two examples to illustrate the concept.
Unless explicitly specified with the topic, create about 10 slides.
You also fix any syntax error that may be present in the JSON-formatted content.

A slide that describes a step-by-step/sequential process begins the bullet points
with a special marker >>
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED.
If relevant, add one or two EXAMPLES to illustrate the concept.
For two or three important slides, generate the key message that those slides convey.
Identify if a slide describes a step-by-step/sequential process, then begin the bullet points with a special marker >>. Limit this to max two or three slides.
Also, add at least one slide with a double column layout by generating appropriate content based on the description in the JSON schema provided below.
ALWAYS add a concluding slide at the end, containing a list of the key takeways and an optional call-to-action if relevant to the context.
Unless explicitly instructed, create 10 TO 12 SLIDES in total.


### List of instructions:
Expand Down Expand Up @@ -56,7 +56,7 @@ The output must be only a valid and syntactically correct JSON adhering to the f
"key_message": ""
}},
{{
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of two related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
"bullet_points": [
{{
"heading": "Heading of the left column",
Expand All @@ -81,14 +81,5 @@ The output must be only a valid and syntactically correct JSON adhering to the f
}}


### Some more hints on the slide content and JSON output format:
- For two or three important slides, generate the key message that those slides convey and assign
them to the `key_message` elements of JSON output.
- Identify if a slide describes a step-by-step/sequential process, then begin the bullet points
with a special marker >>. Limit this to max two or three slides.
- Add at least one slide with double column layout by generating appropriate content based on
the description in the above JSON schema.


### Output:
```json

0 comments on commit 257cfa2

Please sign in to comment.