From 83efce4d3c57972c7fca508ab034d02106e8e72f Mon Sep 17 00:00:00 2001 From: James Braza Date: Wed, 13 Nov 2024 14:56:30 -0800 Subject: [PATCH] Updated stored configs for new tools --- paperqa/configs/contracrow.json | 2 +- paperqa/configs/wikicrow.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paperqa/configs/contracrow.json b/paperqa/configs/contracrow.json index 06e4ff20..202818d0 100644 --- a/paperqa/configs/contracrow.json +++ b/paperqa/configs/contracrow.json @@ -43,7 +43,7 @@ "agent_llm": "gpt-4o-2024-08-06", "agent_type": "ToolSelector", "agent_system_prompt": "You are a helpful AI assistant.", - "agent_prompt": "Answer question: {question}\n\nSearch for papers, gather evidence, collect papers cited in evidence then re-gather evidence, and answer. Gathering evidence will do nothing if you have not done a new search or collected new papers. If you do not have enough evidence to generate a good answer, you can:\n- Search for more papers (preferred)\n- Collect papers cited by previous evidence (preferred)\n- Gather more evidence using a different phrase\nIf you search for more papers or collect new papers cited by previous evidence, remember to gather evidence again. Once you have five or more pieces of evidence from multiple sources, or you have tried a few times, call {gen_answer_tool_name} tool. The {gen_answer_tool_name} tool output is visible to the user, so you do not need to restate the answer and can simply terminate if the answer looks sufficient. The current status of evidence/papers/cost is {status}", + "agent_prompt": "Answer question: {question}\n\nSearch for papers, gather evidence, collect papers cited in evidence then re-gather evidence, answer, and complete. Gathering evidence will do nothing if you have not done a new search or collected new papers. If you do not have enough evidence to generate a good answer, you can:\n- Search for more papers (preferred)\n- Collect papers cited by previous evidence (preferred)\n- Gather more evidence using a different phrase\nIf you search for more papers or collect new papers cited by previous evidence, remember to gather evidence again. Once you have five or more pieces of evidence from multiple sources, or you have tried a few times, call the {complete_tool_name} tool to terminate. The current status of evidence/papers/cost is {status}", "search_count": 12, "wipe_context_on_answer_failure": true, "timeout": 500.0, diff --git a/paperqa/configs/wikicrow.json b/paperqa/configs/wikicrow.json index 56ff99ea..d3f04304 100644 --- a/paperqa/configs/wikicrow.json +++ b/paperqa/configs/wikicrow.json @@ -43,7 +43,7 @@ "agent_llm": "gpt-4-turbo-2024-04-09", "agent_type": "ToolSelector", "agent_system_prompt": "You are a helpful AI assistant.", - "agent_prompt": "Answer question: {question}\n\nSearch for papers, gather evidence, collect papers cited in evidence then re-gather evidence, and answer. Gathering evidence will do nothing if you have not done a new search or collected new papers. If you do not have enough evidence to generate a good answer, you can:\n- Search for more papers (preferred)\n- Collect papers cited by previous evidence (preferred)\n- Gather more evidence using a different phrase\nIf you search for more papers or collect new papers cited by previous evidence, remember to gather evidence again. Once you have five or more pieces of evidence from multiple sources, or you have tried a few times, call {gen_answer_tool_name} tool. The {gen_answer_tool_name} tool output is visible to the user, so you do not need to restate the answer and can simply terminate if the answer looks sufficient. The current status of evidence/papers/cost is {status}", + "agent_prompt": "Answer question: {question}\n\nSearch for papers, gather evidence, collect papers cited in evidence then re-gather evidence, answer, and complete. Gathering evidence will do nothing if you have not done a new search or collected new papers. If you do not have enough evidence to generate a good answer, you can:\n- Search for more papers (preferred)\n- Collect papers cited by previous evidence (preferred)\n- Gather more evidence using a different phrase\nIf you search for more papers or collect new papers cited by previous evidence, remember to gather evidence again. Once you have five or more pieces of evidence from multiple sources, or you have tried a few times, call the {complete_tool_name} tool to terminate. The current status of evidence/papers/cost is {status}", "search_count": 12, "wipe_context_on_answer_failure": true, "timeout": 500.0,