bstraehle commited on
Commit
f3a3a8b
·
verified ·
1 Parent(s): bbe2291

Update rag_langgraph.py

Browse files
Files changed (1) hide show
  1. rag_langgraph.py +4 -1
rag_langgraph.py CHANGED
@@ -96,7 +96,10 @@ def create_graph(topic):
96
  | JsonOutputFunctionsParser()
97
  )
98
 
99
- researcher_agent = create_agent(llm, [tavily_tool, today_tool], system_prompt=f"Research content on topic: {topic}. Then write a 2000-word article on the topic. At the beginning of the article, add current date and author: Multi-AI-Agent System based on GPT-4o. At the end of the article, add a reference section with research papers.")
 
 
 
100
  researcher_node = functools.partial(agent_node, agent=researcher_agent, name="Researcher")
101
 
102
  #writer_agent = create_agent(llm, [today_tool], system_prompt=f"Write a 2000-word article on topic: {topic}. At the beginning, add current date and author: Multi-AI-Agent System based on GPT-4o. At the end, add a reference section with research papers.")
 
96
  | JsonOutputFunctionsParser()
97
  )
98
 
99
+ researcher_agent = create_agent(llm, [tavily_tool, today_tool], system_prompt="1. Research content on topic: {topic}, prioritizing research papers. "
100
+ "2. Based on your research, write a 2000-word article on the topic. "
101
+ "3. At the beginning of the article, add current date and author: Multi-AI-Agent System. "
102
+ "4. At the end of the article, add a reference section with research papers.")
103
  researcher_node = functools.partial(agent_node, agent=researcher_agent, name="Researcher")
104
 
105
  #writer_agent = create_agent(llm, [today_tool], system_prompt=f"Write a 2000-word article on topic: {topic}. At the beginning, add current date and author: Multi-AI-Agent System based on GPT-4o. At the end, add a reference section with research papers.")