Spaces:
Runtime error
Runtime error
Update the prompts
Browse filesFiles changed (3)
211 unmodified lines2122132142152162172187 unmodified lines226227228229230231232211 unmodified lines# Update the progress barprogress_percentage = min(len(response) / APPROX_TARGET_LENGTH, 0.95)progress_bar.progress(progress_percentage, text='Streaming content...')history.add_user_message(prompt)history.add_ai_message(response)7 unmodified lines'Cleaned JSON response:: original length: %d | cleaned length: %d',len(response), len(response_cleaned))logger.debug('Cleaned JSON: %s', response_cleaned)# Now create the PPT fileprogress_bar.progress(211 unmodified lines2122132142152162172182192202217 unmodified lines229230231232233234235211 unmodified lines# Update the progress barprogress_percentage = min(len(response) / APPROX_TARGET_LENGTH, 0.95)progress_bar.progress(progress_percentage,text='Streaming content...this might take a while...')history.add_user_message(prompt)history.add_ai_message(response)7 unmodified lines'Cleaned JSON response:: original length: %d | cleaned length: %d',len(response), len(response_cleaned))# logger.debug('Cleaned JSON: %s', response_cleaned)# Now create the PPT fileprogress_bar.progress(
12345678910111213141516171819202122232438 unmodified lines636465666768697071You are a helpful, intelligent chatbot. You are experienced with PowerPoint.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.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.In addition, for each slide, add image keywords based on the content of the respective slides.These keywords will be later used to search for images from the Web relevant to the slide content.Create one slide with rich visual experience, containing icons (pictograms) and short texts.This particular slide will illustrate some key ideas/aspects/concepts relevant to the topic.Here, you will generate 4 TO 6 short lines of text (hence, select 4 TO 6 icon names).Each such line will have the name of an icon enclosed between [[ and ]].The name of the icons should be relevant to the aspects described and MUST BE chosen from the <ICONS> section provided below.You must specify the name of the icon exactly as mentioned in <ICONS>.You MUST NEVER generate any icon name not mentioned in the <ICONS> section.ALWAYS add a concluding slide at the end, containing a list of the key takeaways and an optional call-to-action if relevant to the context.Unless explicitly instructed, create 10 TO 12 SLIDES in total.38 unmodified lines{{"heading": "A slide illustrating key ideas/aspects/concepts (Hint: generate an appropriate heading)","bullet_points": ["[[icon_name]] Some short text","[[another_icon_name]] Some words describing this aspect","[[icon_other_name]] Another aspect highlighted in a few words",],"key_message": "","img_keywords": ""1234567891011121314151617181920212223242538 unmodified lines64656667686970717273You are a helpful, intelligent assistant. You are experienced with PowerPoint.Create the slides for a presentation on the given topic.Include main headings for each slide, detailed bullet points for each slide.Add relevant, detailed content to each slide. When 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.In addition, for each slide, add image keywords based on the content of the respective slides.These keywords will be later used to search for images from the Web relevant to the slide content.In addition, create one slide containing 4 TO 6 icons (pictograms) illustrating some key ideas/aspects/concepts relevant to the topic.In this slide, each line of text will begin with the name of an icon enclosed between [[ and ]].The name of an icon MUST BE chosen exactly as it is from the <ICONS> section provided below and should be relevant to the aspects described.If you need an icon that is unavailable in the <ICONS> section, you may select a conceptually similar icon's name from <ICONS>.For example, if an icon for "neural network" is unavailable, you may choose the "deep-learning" icon from <ICONS>.However, you MUST NEVER generate any icon name not mentioned in the <ICONS> section.The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED.ALWAYS add a concluding slide at the end, containing a list of the key takeaways and an optional call-to-action if relevant to the context.Unless explicitly instructed, create 10 TO 12 SLIDES in total.38 unmodified lines{{"heading": "A slide illustrating key ideas/aspects/concepts (Hint: generate an appropriate heading)","bullet_points": ["[[icon_name]] Some text","[[another_icon_name]] Some words describing this aspect","[[icon_other_name]] Another aspect highlighted here","[[an_icon]] Another point here",],"key_message": "","img_keywords": ""
1234567891011121 unmodified line1415161718192021222324252642 unmodified lines697071727374757677You are a helpful, intelligent chatbot. You are experienced with PowerPoint.A list of user instructions is provided below in sequential order -- from the oldest to the latest.The previously generated content of the slide deck in JSON format is also provided.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 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.1 unmodified lineIn addition, for each slide, add image keywords based on the content of the respective slides.These keywords will be later used to search for images from the Web relevant to the slide content.Create one slide with rich visual experience, containing icons (pictograms) and short texts.This particular slide will illustrate some key ideas/aspects/concepts relevant to the topic.Here, you will generate 4 TO 6 short lines of text (hence, select 4 TO 6 icon names).Each such line will have the name of an icon enclosed between [[ and ]].The name of the icons should be relevant to the aspects described and MUST BE chosen from the <ICONS> section provided below.You must specify the name of the icon exactly as mentioned in <ICONS>.You MUST NEVER generate any icon name not mentioned in the <ICONS> section.ALWAYS add a concluding slide at the end, containing a list of the key takeaways and an optional call-to-action if relevant to the context.Unless explicitly instructed, create 10 TO 12 SLIDES in total.42 unmodified lines{{"heading": "A slide illustrating key ideas/aspects/concepts (Hint: generate an appropriate heading)","bullet_points": ["[[icon_name]] Some short text","[[another_icon_name]] Some words describing this aspect","[[icon_other_name]] Another aspect highlighted in a few words",],"key_message": "","img_keywords": ""12345678910111 unmodified line131415161718192021222324252642 unmodified lines69707172737475767778You are a helpful, intelligent assistant. You are experienced with PowerPoint.A list of user instructions is provided below in sequential order -- from the oldest to the latest.The previously generated content of the slide deck in JSON format is also provided.Follow the instructions to revise the content of the previously generated slides of the presentation on the given topic.You will not repeat any slide.Include main headings for each slide, detailed bullet points for each slide.Add relevant, detailed content to each slide. When 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.1 unmodified lineIn addition, for each slide, add image keywords based on the content of the respective slides.These keywords will be later used to search for images from the Web relevant to the slide content.In addition, create one slide containing 4 TO 6 icons (pictograms) illustrating some key ideas/aspects/concepts relevant to the topic.In this slide, each line of text will begin with the name of an icon enclosed between [[ and ]].The name of an icon MUST BE chosen exactly as it is from the <ICONS> section provided below and should be relevant to the aspects described.If you need an icon that is unavailable in the <ICONS> section, you may select a conceptually similar icon's name from <ICONS>.For example, if an icon for "neural network" is unavailable, you may choose the "deep-learning" icon from <ICONS>.However, you MUST NEVER generate any icon name not mentioned in the <ICONS> section.The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED.ALWAYS add a concluding slide at the end, containing a list of the key takeaways and an optional call-to-action if relevant to the context.Unless explicitly instructed, create 10 TO 12 SLIDES in total.42 unmodified lines{{"heading": "A slide illustrating key ideas/aspects/concepts (Hint: generate an appropriate heading)","bullet_points": ["[[icon_name]] Some text","[[another_icon_name]] Some words describing this aspect","[[icon_other_name]] Another aspect highlighted here","[[an_icon]] Another point here",],"key_message": "","img_keywords": ""
app.py+5-2
langchain_templates/chat_prompts/initial_template_v4_two_cols_img.txt+16-14
langchain_templates/chat_prompts/refinement_template_v4_two_cols_img.txt+14-13