Skip to content

Commit 729f6bf

Browse files
committed
ranking prompt improved
1 parent 21f8c6c commit 729f6bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ai/generative-ai-service/generic_document_evaluation/backend/files/DocumentEvaluation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ def build_prompt(criteria_df, additional_instruction=None, include_ranking_marke
5252
if additional_instruction is not None:
5353
prompt += f"Additionally, {additional_instruction}"
5454
if include_ranking_marker is True:
55-
prompt += f"""Rank the documents from best to worst** according to how well they satisfy the criteria at the end of the evaluation.
56-
Identify the best option overall, providing a clear and detailed explanation of why it ranks highest."""
55+
print('its true babes')
56+
prompt += f"""At the end of the evaluation, rank all documents from best to worst according to how well they satisfy the given criteria.
57+
- Clearly identify the best option overall, providing a detailed explanation of why it ranks highest.
58+
- List and discuss the remaining documents in order, explaining their ranking by highlighting both their strengths and weaknesses relative to the criteria.
59+
"""
5760
prompt += "\n\n"
5861
prompt += ( """ Your evaluation should follow these steps:
5962
1. For each document, assess whether the required information is present and evaluate its quality according to the criteria.

0 commit comments

Comments
 (0)