Working state (mostly)

This commit is contained in:
2026-08-08 14:38:26 +02:00
parent 137a9a7868
commit f345f8bb4f
7 changed files with 32 additions and 22 deletions
+5 -4
View File
@@ -89,11 +89,12 @@ do not score or give feedback to any other question."""
from utils import get_label_text_content, get_label_sol_content, get_label_persp_content
def make_prompt(input_dir,full_label):
text = get_label_text_content(input_dir, full_label)
corr = get_label_sol_content(input_dir, full_label)
persp = get_label_persp_content(input_dir, full_label)
text = get_label_text_content(input_dir, full_label) or ""
corr = get_label_sol_content(input_dir, full_label) or ""
persp = get_label_persp_content(input_dir, full_label) or ""
# print("Debug : l/t/c/p", full_label, text, corr, persp)
if persp and persp != "":
if persp:
persp = "\n\nHere are additional scoring instructions : \n\n```\n" + persp +"\n```\n"
return main_prompt.replace("<<text>>", text).replace("<<corr>>", corr).replace("<<persp>>", persp).replace("<<label>>", full_label)