From ba554bceba91f95de7eb6d858674e393c4c57a23 Mon Sep 17 00:00:00 2001 From: didi <2020201387@ruc.edu.cn> Date: Thu, 11 Apr 2024 00:03:23 +0800 Subject: [PATCH] update math resolver & prompt --- math_ai/codebase/gate_controller.py | 13 +++++++++++-- math_ai/codebase/math_resovler.py | 18 ++++++------------ math_ai/codebase/prompt.py | 4 +--- math_ai/codebase/strategies.py | 16 ++++++++++++++-- 4 files changed, 32 insertions(+), 19 deletions(-) diff --git a/math_ai/codebase/gate_controller.py b/math_ai/codebase/gate_controller.py index a0c12f4563..99688e2217 100644 --- a/math_ai/codebase/gate_controller.py +++ b/math_ai/codebase/gate_controller.py @@ -13,18 +13,27 @@ def __init__(self): self.llm = OpenAILLM() self.role = "" self.llm.set_role(self.role) + def run(self, problem: Dict) -> Dict: """ + problem: + { + "desc":"", + "type":"