Update he

This commit is contained in:
didi 2024-07-01 14:16:35 +08:00
parent fd432fa132
commit f1ce1330d7
3 changed files with 70 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class Ensemble(Operator):
async def __call__(self, solutions:List, problem_description):
solution_text = ""
for solution in solutions:
solution_text += solution + "\n"
solution_text += str(solution) + "\n"
prompt = ENSEMBLE_PROMPT.format(solutions=solution_text, problem_description=problem_description)
node = await ActionNode.from_pydantic(EnsembleOp).fill(context=prompt, llm=self.llm)
response = node.instruct_content.model_dump()

View file

@ -20,7 +20,7 @@ If you believe the solution is capable of resolving the issue, return True; othe
REVISE_PROMPT = """
For the question described as {problem_description},
please evaluate and revise the solution provided: {solution}, taking into account the review comments: {comment}."
please evaluate and revise the solution provided: {solution}, taking into account the review feedbacks: {feedback}."
Then output the revised solution.
"""