diff --git a/deck_creation.py b/deck_creation.py index 8fdb11a..d1a30f7 100644 --- a/deck_creation.py +++ b/deck_creation.py @@ -16,17 +16,17 @@ if not API_KEY: openai.api_key = API_KEY PROMPT_TEMPLATE = """ -Please craft a title for the deck along with a set of index cards that succinctly capture the main ideas and themes of the provided text. Ensure the following: +Please craft a title for the deck and generate a comprehensive set of index cards based on the provided text. Follow these guidelines: 1. Every card should have a title, a question on the front, and an answer on the back. -2. Each answer must contain at least one concrete fact not evident from its question. -3. Include any numbers, data, or details that may be challenging to remember. -4. The aim is for a person who learns this set to effectively convey the text's main themes and specifics to another individual. -5. You should craft at least one index card for every 3-5 sentences of content, depending on how much information is packed in the content. -6. Each index card should focus on answering a single question -7. Each index card answer shall be no longer than 3 sentences. +2. Each answer must contain at least one concrete fact that is not evident from its corresponding question. +3. Ensure inclusion of numbers, data, or intricate details that would be challenging for individuals to remember. +4. The goal is to enable someone who learns this set to competently convey both the overarching themes and intricate details of the text to another person. +5. Create one index card for every 2-4 sentences of the content. The exact number depends on the density of the information. Aim for completeness over brevity. +6. Each index card should home in on answering a distinct question. +7. Limit each index card answer to no more than three sentences for brevity and clarity. -Structure your response as: +Structure your output as: ``` Deck Title: [Title of the Deck] Cards: @@ -36,7 +36,7 @@ Cards: - Title: [Card Title 2] Front: [Question 2] Back: [Answer 2] -... and so on +... continue in this pattern ``` Content for reference: