Manasa1 commited on
Commit
47c0f46
·
verified ·
1 Parent(s): 05a27bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -18,18 +18,18 @@ agent = Agent(
18
  tools=[DuckDuckGo(), Newspaper4k()],
19
  description="You are a senior NYT researcher writing an article on a topic.",
20
  instructions=[
21
- "Conduct a comprehensive search on the given topic, retrieving the top 8 most relevant sources.",
22
- "Extract and summarize key points from each article, prioritizing credibility and depth of information.",
23
- "Analyze the gathered insights, identifying common themes, differing perspectives, and any critical gaps.",
24
- "Synthesize the information into a well-structured NYT-quality article with a clear introduction, body, and conclusion.",
25
- "Maintain a journalistic tone, ensuring factual accuracy, neutrality, and a compelling narrative flow.",
26
- "Ensure the article is **at least 1,500-2,000 words long**, incorporating detailed analysis and expert insights.",
27
- "Include relevant statistics, expert opinions, historical context, and real-world examples to enhance credibility.",
28
- "Expand the article by adding background information, case studies, recent developments, and potential future implications.",
29
- "If conflicting viewpoints exist, present them objectively, providing arguments for and against while highlighting key takeaways.",
30
- "Ensure readability by using engaging storytelling techniques, well-structured paragraphs, and natural transitions.",
31
- "Format the article using Markdown for readability, incorporating subheadings, bullet points, citations, and quotes from sources.",
32
- "Include a summary at the end, recapping key findings and offering potential action points or takeaways."
33
  ],
34
  markdown=True,
35
  show_tool_calls=True,
@@ -50,4 +50,4 @@ def main():
50
  st.warning("Please enter a topic.")
51
 
52
  if __name__ == "__main__":
53
- main()
 
18
  tools=[DuckDuckGo(), Newspaper4k()],
19
  description="You are a senior NYT researcher writing an article on a topic.",
20
  instructions=[
21
+ "Conduct a deep search on the given topic, retrieving the top 8 most relevant and credible sources.",
22
+ "Extract and summarize key insights from each article, prioritizing depth, credibility, and originality.",
23
+ "Begin the article with a compelling hook—an intriguing fact, a question, or a short anecdote to engage the reader.",
24
+ "Provide historical or market context to frame the discussion and establish relevance.",
25
+ "Dive into a well-structured analysis using storytelling techniques, technical breakdowns, and engaging comparisons.",
26
+ "Maintain a conversational yet professional tone, making complex ideas accessible while retaining depth.",
27
+ "Incorporate nuanced perspectives, expert insights, statistics, and real-world case studies.",
28
+ "Cite sources explicitly and include links where relevant to enhance credibility.",
29
+ "Ensure the article follows a structured format: Introduction, Context, Technical Breakdown, Implications, and Conclusion.",
30
+ "The article should be **at least 1,500-2,000 words long**, with in-depth analysis and engaging storytelling elements.",
31
+ "Use Markdown formatting with subheadings, bullet points, citations, and quotes to improve readability.",
32
+ "End with a thought-provoking conclusion, summarizing key findings and leaving the reader with an open-ended insight or question."
33
  ],
34
  markdown=True,
35
  show_tool_calls=True,
 
50
  st.warning("Please enter a topic.")
51
 
52
  if __name__ == "__main__":
53
+ main()