Skip to content

Commit 7331eef

Browse files
committed
evaluate default examples bug resolved
1 parent e0375a8 commit 7331eef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/core/prompt_templates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,7 @@ def get_freeform_eval_prompt(model_id: str,
572572
examples_str = PromptHandler.format_examples_eval(examples)
573573

574574
elif examples == [] or examples == None:
575-
examples_str = PromptHandler.format_examples_eval(USE_CASE_CONFIGS_EVALS[use_case].default_examples)
576-
575+
examples_str = str(USE_CASE_CONFIGS_EVALS[use_case].default_examples)
577576
base_prompt = """ You are a brilliant judge on evaluating a set of data with fields and corresponding values
578577
Follow the given instructions to understand the structure of given data and evaluate it based on parameters defined for you."""
579578
final_instruction = f"""data row: {row}

0 commit comments

Comments
 (0)