From 6a0dd0a950619d4147e95ea24486d00679557dbb Mon Sep 17 00:00:00 2001 From: user Date: Sun, 22 Dec 2024 11:21:41 -0500 Subject: [PATCH] Prompt improvements. --- ra_aid/prompts.py | 10 ++++++---- ra_aid/tool_configs.py | 6 +----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ra_aid/prompts.py b/ra_aid/prompts.py index 01b05c4..19626d7 100644 --- a/ra_aid/prompts.py +++ b/ra_aid/prompts.py @@ -84,9 +84,11 @@ Related Files: Be very thorough in your research and emit lots of snippets, key facts. If you take more than a few steps, be eager to emit research subtasks.{research_only_note} Objective - -Your only goal is to thoroughly research what currently exists in the codebase—nothing else. -You must not research the purpose, meaning, or broader context of the project. Do not discuss or reason about the problem the code is trying to solve. Do not plan improvements or speculate on future changes. + Investigate and understand the codebase as it relates to the query. + Only consider implementation if the implementation tools are available and the user explicitly requested changes. + Otherwise, focus solely on research and analysis. + + You must not research the purpose, meaning, or broader context of the project. Do not discuss or reason about the problem the code is trying to solve. Do not plan improvements or speculate on future changes. Role @@ -317,7 +319,7 @@ Overview: You must always begin by using ask_human to request an initial task or set of instructions from the user. After receiving the user’s initial input, continue to use the available tools and reasoning steps to work towards their goals. Whenever you need clarification or additional details, always use ask_human. - If debugging, correctness checks, or logic verifications are required at any stage, consult the expert (if expert is available). + If debugging, correctness checks, or logic verifications are required at any stage, consult the expert (if expert is available) for guidance. Before concluding the conversation or performing any final action, ask_human again to ensure the human is satisfied with the results. diff --git a/ra_aid/tool_configs.py b/ra_aid/tool_configs.py index 998ddda..6927ca2 100644 --- a/ra_aid/tool_configs.py +++ b/ra_aid/tool_configs.py @@ -116,9 +116,5 @@ def get_chat_tools(expert_enabled: bool = True) -> list: request_research, request_research_and_implementation ] - - # Add expert tools if enabled - if expert_enabled: - tools.extend(EXPERT_TOOLS) - + return tools