From 99dd5844bc4ec1e7eead11f777944eee2b71f8c0 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 1 Apr 2025 13:55:51 +0100 Subject: [PATCH] Rename prompts directory to plugins and update extract.py accordingly --- plugins/blog_post.md | 14 ++++++++ plugins/default.md | 8 +++++ plugins/idea_app.md | 16 +++++++++ plugins/summary.md | 4 +++ plugins/test_transcript_20250401_135009.md | 42 ++++++++++++++++++++++ src/extract.py | 4 +-- 6 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 plugins/blog_post.md create mode 100644 plugins/default.md create mode 100644 plugins/idea_app.md create mode 100644 plugins/summary.md create mode 100644 plugins/test_transcript_20250401_135009.md diff --git a/plugins/blog_post.md b/plugins/blog_post.md new file mode 100644 index 0000000..c7ed996 --- /dev/null +++ b/plugins/blog_post.md @@ -0,0 +1,14 @@ +Based on the following transcript and its summary, create a draft blog post. The draft should include: +1. A compelling title +2. An introduction that hooks the reader +3. Main sections with clear headings +4. Key points from the transcript +5. A conclusion + +Transcript: +{transcript} + +Summary: +{summary} + +Blog Post Draft: diff --git a/plugins/default.md b/plugins/default.md new file mode 100644 index 0000000..23e76be --- /dev/null +++ b/plugins/default.md @@ -0,0 +1,8 @@ +Please provide a concise summary of the following transcript. +Focus on the main topics, key talking points, and any action items or decisions mentioned. +Keep the summary short, clear, and well-structured. + +Extract the action items and list them as markdown checklist items in a "TODO:" section, prefixing each action item with "- [ ]". If there are no action items or TODOs mentioned, ommit the "action items" section. + +Transcript: +{transcript} diff --git a/plugins/idea_app.md b/plugins/idea_app.md new file mode 100644 index 0000000..87cf9df --- /dev/null +++ b/plugins/idea_app.md @@ -0,0 +1,16 @@ +Based on the following transcript and its summary, create a detailed app idea specification. The specification should include: +1. App name and tagline +2. Problem statement +3. Target audience +4. Key features +5. Technical considerations +6. User flow +7. Potential challenges + +Transcript: +{transcript} + +Summary: +{summary} + +App Idea Specification: \ No newline at end of file diff --git a/plugins/summary.md b/plugins/summary.md new file mode 100644 index 0000000..9c0b52b --- /dev/null +++ b/plugins/summary.md @@ -0,0 +1,4 @@ +Please provide a short, 2-3 sentence summary of the following transcript. The summary should never be longer than a single paragraph. + +Transcript: +{transcript} diff --git a/plugins/test_transcript_20250401_135009.md b/plugins/test_transcript_20250401_135009.md new file mode 100644 index 0000000..78580ae --- /dev/null +++ b/plugins/test_transcript_20250401_135009.md @@ -0,0 +1,42 @@ +App Name: MindfulMoment + +Tagline: "Find calm in the chaos" + +Problem Statement: The problem we are trying to solve is the lack of mindfulness practice in daily life. With the increasing demands of work, family, and social media, many people find it difficult to prioritize self-care and stress management. This can lead to feelings of overwhelming, anxiety, and burnout. + +Target Audience: MindfulMoment is designed for individuals looking to incorporate mindfulness into their daily routine. Our target audience includes: + +* Stressed professionals seeking a more balanced life +* Busy parents looking for ways to calmly handle the demands of childcare and household management +* Social media enthusiasts wanting to unplug and disconnect from constant notifications +* Anyone interested in improving their mental well-being through mindfulness practices + +Key Features: + +1. Daily Mindful Moments: Users will receive daily prompts to practice mindfulness, such as deep breathing exercises or guided meditations. These moments can be done anywhere and at any time, making it easy to fit mindfulness into a busy schedule. +2. Habit Tracker: Users can track their progress by marking off completed mindfulness practices on a calendar. This feature encourages users to establish regular mindfulness habits and maintain consistency over time. +3. Reward System: To incentivize users, MindfulMoment will offer rewards for completing daily mindfulness practices, such as virtual stickers or badges. Users can display their rewards on a personalized profile page, fostering a sense of accomplishment and motivation. +4. Social Sharing: Users can connect with like-minded individuals through social sharing features, such as posting progress updates or participating in online forums. This aspect promotes accountability and a sense of community among users. +5. Personalized Insights: Based on user data, MindfulMoment will provide personalized insights and recommendations tailored to each individual's needs. This feature helps users identify areas for improvement and track their progress over time. + +Technical Considerations: + +1. User-Friendly Interface: The app should have an intuitive interface that makes it easy for users to navigate and access features. +2. Gamification Elements: To enhance user engagement, MindfulMoment will incorporate gamification elements such as rewards, leaderboards (optional), and personalized avatars or profiles. +3. Integration with Health Apps: Users can link their fitness trackers or health apps to monitor progress towards overall well-being goals. +4. Customizable Notifications: Users can choose how they want to receive reminders about mindfulness practices, such as push notifications or email alerts. + +User Flow: + +1. Onboarding: New users will complete an introductory quiz to assess their current level of mindfulness practice and set goals for their daily routine. +2. Habit Tracking: Users will mark off completed mindfulness practices on a calendar view, which displays their progress over time. +3. Rewards & Recognition: Users will receive rewards for completing daily mindfulness practices, such as virtual stickers or badges, which they can display on their profile page. +4. Social Sharing: Users can connect with others through social sharing features, such as posting progress updates or participating in online forums. +5. Personalized Insights: Based on user data, MindfulMoment will provide personalized insights and recommendations tailored to each individual's needs. + +Potential Challenges: + +1. User Retention: With so many mindfulness apps available, retaining users can be a challenge. MindfulMoment will address this by offering unique features, such as personalized rewards or social sharing capabilities, to keep users engaged and motivated. +2. Technical Difficulties: Ensuring the app's stability and smooth functionality is crucial for user satisfaction. MindfulMoment will invest in thorough testing and quality assurance to minimize technical issues. +3. Privacy Concerns: Users may be hesitant to share personal data or connect their fitness trackers with the app. To address this, MindfulMoment will prioritize data privacy and security, clearly outlining data collection and usage policies in the app's terms of service. +4. Scalability: As the user base grows, MindfulMoment will need to adapt its infrastructure to ensure seamless performance and avoid downtime. Regularly monitoring server performance and adjusting resources as needed will be essential for maintaining a high-quality user experience. \ No newline at end of file diff --git a/src/extract.py b/src/extract.py index 4540d90..0ee1748 100755 --- a/src/extract.py +++ b/src/extract.py @@ -20,8 +20,8 @@ def determine_content_types(transcript_text: str) -> list[str]: def generate_additional_content(content_type: str, transcript_text: str, summary_text: str) -> str: """Generate additional content based on the content type.""" - prompt_dir = Path("prompts") - with open(prompt_dir / f"{content_type}.md", 'r', encoding='utf-8') as f: + plugin_dir = Path("plugins") + with open(plugin_dir / f"{content_type}.md", 'r', encoding='utf-8') as f: prompt_template = f.read() prompt = prompt_template.format(transcript=transcript_text, summary=summary_text)