Skip to content

Commit

Permalink
prompt name fixes for positive med
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Nov 24, 2023
1 parent 29b6c9b commit 673b8ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions playground/demos/positive_med/positive_med.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
from swarms.models import OpenAIChat
from swarms.prompts.autobloggen import (
DRAFT_AGENT_SYSTEM_PROMPT,
REVIEW_PROMPT,
AUTOBLOG_REVIEW_PROMPT,
SOCIAL_MEDIA_SYSTEM_PROMPT_AGENT,
TOPIC_GENERATOR,
TOPIC_GENERATOR_SYSTEM_PROMPT,
)
import os

Expand All @@ -35,7 +35,7 @@


def get_review_prompt(article):
prompt = REVIEW_PROMPT.replace("{{ARTICLE}}", article)
prompt = AUTOBLOG_REVIEW_PROMPT.replace("{{ARTICLE}}", article)
return prompt


Expand All @@ -51,7 +51,7 @@ def social_media_prompt(article: str, goal: str = "Clicks and engagement"):
"Generate 10 topics on gaining mental clarity using ancient practices"
)
topics = llm(
f"Your System Instructions: {TOPIC_GENERATOR}, Your current task:"
f"Your System Instructions: {TOPIC_GENERATOR_SYSTEM_PROMPT}, Your current task:"
f" {topic_selection_task}"
)

Expand Down
4 changes: 3 additions & 1 deletion swarms/prompts/autobloggen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AUTOBLOG_GEN_GENERATOR = """
TOPIC_GENERATOR_SYSTEM_PROMPT = """
First search for a list of topics on the web based their relevance to Positive Med's long term vision then rank than based on the goals this month, then output a single headline title for a blog for the next autonomous agent to write the blog, utilize the SOP below to help you strategically select topics. Output a single topic that will be the foundation for a blog.
Expand Down Expand Up @@ -274,3 +274,5 @@
- Flag any bold claims that lack credible evidence for fact-checker review.
"""


0 comments on commit 673b8ac

Please sign in to comment.