barunsaha commited on
Commit
1dbc12d
1 Parent(s): 4ea6775

Update JSON conversion prompt

Browse files
global_config.py CHANGED
@@ -32,7 +32,7 @@ class GlobalConfig:
32
  APP_STRINGS_FILE = 'strings.json'
33
  PRELOAD_DATA_FILE = 'examples/example_02.json'
34
  SLIDES_TEMPLATE_FILE = 'langchain_templates/template_07.txt'
35
- JSON_TEMPLATE_FILE = 'langchain_templates/text_to_json_template.txt'
36
 
37
  PPTX_TEMPLATE_FILES = {
38
  'Blank': {
 
32
  APP_STRINGS_FILE = 'strings.json'
33
  PRELOAD_DATA_FILE = 'examples/example_02.json'
34
  SLIDES_TEMPLATE_FILE = 'langchain_templates/template_07.txt'
35
+ JSON_TEMPLATE_FILE = 'langchain_templates/text_to_json_template_02.txt'
36
 
37
  PPTX_TEMPLATE_FILES = {
38
  'Blank': {
langchain_templates/text_to_json_template_02.txt ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Convert the given slide deck text into structured JSON output. Also, generate and add an engaging presentation title. The output should be only correct and valid JSON.
2
+
3
+ Desired JSON output format:
4
+
5
+ {
6
+ "title": "Presentation Title",
7
+ "slides": [
8
+ {
9
+ "heading": "Heading for the First Slide",
10
+ "bullet_points": [
11
+ "First bullet point",
12
+ [
13
+ "Sub-bullet point 1",
14
+ "Sub-bullet point 1"
15
+ ],
16
+ "Second bullet point"
17
+ ]
18
+ },
19
+ {
20
+ "heading": "Heading for the Second Slide",
21
+ "bullet_points": [
22
+ "First bullet point",
23
+ "Second bullet item",
24
+ "Third bullet point"
25
+ ]
26
+ }
27
+ ]
28
+ }
29
+
30
+
31
+ =====
32
+ Text:
33
+
34
+ <REPLACE_PLACEHOLDER>
35
+ =====
36
+
37
+ In the output JSON, the `heading` field should contain the heading of each slide. Each slide object has a `bullet_points` array containing the slide's contents.
38
+
39
+ Output:
40
+ ```json