mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 06:53:47 +00:00
scoring resolve
This commit is contained in:
parent
c53733d1a3
commit
def6d5d8ad
9 changed files with 283 additions and 143 deletions
|
@ -28,7 +28,7 @@ llm_as_judge_8b_correctness = ScoringFnDef(
|
|||
description="Llm As Judge Scoring Function",
|
||||
parameters=[],
|
||||
return_type=NumberType(),
|
||||
context=LLMAsJudgeContext(
|
||||
context=LLMAsJudgeScoringFnParams(
|
||||
prompt_template=JUDGE_PROMPT,
|
||||
judge_model="Llama3.1-8B-Instruct",
|
||||
judge_score_regex=[r"Total rating: (\d+)", r"rating: (\d+)", r"Rating: (\d+)"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue