forked from phoenix-oss/llama-stack-mirror
categorical score for llm as judge
This commit is contained in:
parent
0850ad656a
commit
788411b680
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class LlmAsJudgeScoringFn(BaseScoringFn):
|
||||||
for regex in rating_regexes:
|
for regex in rating_regexes:
|
||||||
match = re.search(regex, content)
|
match = re.search(regex, content)
|
||||||
if match:
|
if match:
|
||||||
judge_rating = int(match.group(1))
|
judge_rating = match.group(1)
|
||||||
break
|
break
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue