Spaces:
Running
Running
jianghuyihei
commited on
Commit
•
f3b97a0
1
Parent(s):
2d146ad
fix
Browse files- agents.py +1 -1
- app.py +1 -0
- prompts/deep_research_agent_promts.py +5 -1
agents.py
CHANGED
@@ -202,7 +202,7 @@ class DeepResearchAgent:
|
|
202 |
if len(search_paper) > 0:
|
203 |
s_p = search_paper[0]
|
204 |
if s_p and s_p.title not in self.read_papers:
|
205 |
-
prompt = get_deep_judge_relevant_prompt(
|
206 |
messages = self.wrap_messages(prompt)
|
207 |
response = self.get_openai_response(messages)
|
208 |
relevant = extract(response,"relevant")
|
|
|
202 |
if len(search_paper) > 0:
|
203 |
s_p = search_paper[0]
|
204 |
if s_p and s_p.title not in self.read_papers:
|
205 |
+
prompt = get_deep_judge_relevant_prompt(s_p.title,s_p.abstract,self.topic)
|
206 |
messages = self.wrap_messages(prompt)
|
207 |
response = self.get_openai_response(messages)
|
208 |
relevant = extract(response,"relevant")
|
app.py
CHANGED
@@ -438,6 +438,7 @@ def form_post(topic: str = Form(...), user_id: str = Form(...), state: str = For
|
|
438 |
time.sleep(10)
|
439 |
continue
|
440 |
|
|
|
441 |
with lock:
|
442 |
logging.info(f"Processing request for topic: {topic}")
|
443 |
start_time = time.time()
|
|
|
438 |
time.sleep(10)
|
439 |
continue
|
440 |
|
441 |
+
user_id, topic = queue.get()
|
442 |
with lock:
|
443 |
logging.info(f"Processing request for topic: {topic}")
|
444 |
start_time = time.time()
|
prompts/deep_research_agent_promts.py
CHANGED
@@ -199,7 +199,7 @@ Additionally, you are encouraged to adopt the following three modes of thinking:
|
|
199 |
2. Analogy: Identify a specific problem you are currently facing and research existing solutions that have successfully tackled similar challenges. Explore these solutions and adapt key principles and strategies to your situation. Think creatively about how tools and approaches from other domains can be reimagined to devise a novel strategy for your issue. Encourage you to actively explore methods in other fields to solve your current problems.
|
200 |
3. Deep Dive: Some methods may present specific approaches to addressing a particular problem. Consider whether there are aspects that could be modified to enhance their rationale and effectiveness.
|
201 |
|
202 |
-
Note:
|
203 |
|
204 |
You are encouraged to apply human reasoning strategies to identify future research directions based on prior studies. Aim for in-depth analysis rather than mere integration of existing ideas. Please avoid introducing unfamiliar information, ensuring that the trends you present are both authentic and reasonable. Before proposing any trends, take a moment to reflect on the principles underlying the methods you're employing and assess their relevance to your research area.
|
205 |
|
@@ -273,6 +273,8 @@ Please adhere to the following guidelines:
|
|
273 |
|
274 |
{future}
|
275 |
|
|
|
|
|
276 |
Please output strictly in the following format:
|
277 |
<motivation>{{the motivation of your idea}}</motivation>
|
278 |
<novelty> {{the novelty of your idea}} </novelty>
|
@@ -317,6 +319,8 @@ When referencing other research, please include the titles of the cited papers.
|
|
317 |
|
318 |
{idea}
|
319 |
|
|
|
|
|
320 |
The final idea should contains the title, clearly explain the origins, motivation, and challenges of your idea, detailing how you overcame these hurdles.
|
321 |
Please output strictly in the following format:
|
322 |
<final_idea> {{the final idea}} </final_idea>
|
|
|
199 |
2. Analogy: Identify a specific problem you are currently facing and research existing solutions that have successfully tackled similar challenges. Explore these solutions and adapt key principles and strategies to your situation. Think creatively about how tools and approaches from other domains can be reimagined to devise a novel strategy for your issue. Encourage you to actively explore methods in other fields to solve your current problems.
|
200 |
3. Deep Dive: Some methods may present specific approaches to addressing a particular problem. Consider whether there are aspects that could be modified to enhance their rationale and effectiveness.
|
201 |
|
202 |
+
Note: The limitations of each article pertain specifically to the methods employed during that particular time period and should not be assumed to still apply today. It is essential to carefully consider the current tasks at hand and analyze which issues remain unresolved, ideally focusing on the latest advancements in the field.
|
203 |
|
204 |
You are encouraged to apply human reasoning strategies to identify future research directions based on prior studies. Aim for in-depth analysis rather than mere integration of existing ideas. Please avoid introducing unfamiliar information, ensuring that the trends you present are both authentic and reasonable. Before proposing any trends, take a moment to reflect on the principles underlying the methods you're employing and assess their relevance to your research area.
|
205 |
|
|
|
273 |
|
274 |
{future}
|
275 |
|
276 |
+
The idea should be related to the topic: {topic}.
|
277 |
+
|
278 |
Please output strictly in the following format:
|
279 |
<motivation>{{the motivation of your idea}}</motivation>
|
280 |
<novelty> {{the novelty of your idea}} </novelty>
|
|
|
319 |
|
320 |
{idea}
|
321 |
|
322 |
+
The idea should be related to the topic: {topic}.
|
323 |
+
|
324 |
The final idea should contains the title, clearly explain the origins, motivation, and challenges of your idea, detailing how you overcame these hurdles.
|
325 |
Please output strictly in the following format:
|
326 |
<final_idea> {{the final idea}} </final_idea>
|