File size: 580 Bytes
22ecb24 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import time
from utils.analysis import assign_certainty_score, assign_severity_score
def evaluate_documents(st) -> str:
time.sleep(.8)
data_certainty = assign_certainty_score(st)
data_severity = assign_severity_score(st)
details = f"How to read ?\nYou have 2 scores:\nA. Certainty Score\nB. Severity Score\n"
details += f"For each score, you have 3 parts per discrepancies:\n1. System prompt\n\n2. User message\n3. Score\n---\n"
details += f"{data_certainty}\n---\n{data_severity}"
return "Step 3: Documents evaluated successfully", details
|