Spaces:
Sleeping
Sleeping
fix how feedback list is passed into judge
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ def create_feedback(review, pdf_text, agent_prompt, model):
|
|
169 |
return feedback
|
170 |
|
171 |
def pick_best_review(feedback_list, agent_prompt, review, pdf_text, model):
|
172 |
-
prompt = f"You are given a list containing output from multiple iterations of the same agent. The agent was given the following prompt: {agent_prompt}.
|
173 |
|
174 |
messages = [{
|
175 |
"role": "user",
|
@@ -188,11 +188,11 @@ def pick_best_review(feedback_list, agent_prompt, review, pdf_text, model):
|
|
188 |
},
|
189 |
{
|
190 |
"type": "text",
|
191 |
-
"text": "Here is the feedback about the review"
|
192 |
},
|
193 |
{
|
194 |
"type": "text",
|
195 |
-
"text": feedback_list
|
196 |
},
|
197 |
{
|
198 |
"type": "text",
|
|
|
169 |
return feedback
|
170 |
|
171 |
def pick_best_review(feedback_list, agent_prompt, review, pdf_text, model):
|
172 |
+
prompt = f"You are given a list containing output from multiple iterations of the same agent. The agent was given the following prompt: {agent_prompt}. OK the agent prompt is done. Now, your task is to go through each iteration of feedback and pick the best overall feedback for the review. This can be portions of feedback from each iteration, or one set of feedback in its entirety. Please return the feedback in the exact format and wording it appears in. You will be given the original review, the list of feedback from the different agents separated by the '^' character, and the paper the review is about."
|
173 |
|
174 |
messages = [{
|
175 |
"role": "user",
|
|
|
188 |
},
|
189 |
{
|
190 |
"type": "text",
|
191 |
+
"text": "Here is the list of feedback about the review, where each item is separated by the '^' character"
|
192 |
},
|
193 |
{
|
194 |
"type": "text",
|
195 |
+
"text": "^ ".join(feedback_list)
|
196 |
},
|
197 |
{
|
198 |
"type": "text",
|