Skip to content

Commit aa7b1a6

Browse files
Merge a5288e4 into ce2c10b
2 parents ce2c10b + a5288e4 commit aa7b1a6

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/unitxt/catalog/metrics/llm_as_judge/direct/criteria/conciseness.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"name": "conciseness",
44
"description": "Is the response concise and to the point?",
55
"prediction_field": "response",
6-
"context_fields": [],
6+
"context_fields": [
7+
"question"
8+
],
79
"options": [
810
{
911
"__type__": "criteria_option",

src/unitxt/inference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,8 @@ class RITSInferenceEngine(
18551855
"ibm-granite/granite-guardian-3.2-3b-a800m": "granite-guardian-3-2-3b-a800m",
18561856
"ibm-granite/granite-guardian-3.2-5b": "granite-guardian-3-2-5b-ris",
18571857
"granite-guardian-3-2-5b-ris": "granite-guardian-3-3-8b",
1858+
"openai/gpt-oss-20b": "gpt-oss-20b",
1859+
"openai/gpt-oss-120b": "gpt-oss-120b",
18581860
}
18591861

18601862
def get_default_headers(self):
@@ -3355,6 +3357,8 @@ class CrossProviderInferenceEngine(
33553357
"mixtral-8x7b-instruct-v01": "mistralai/mixtral-8x7B-instruct-v0.1",
33563358
"deepseek-v3": "deepseek-ai/DeepSeek-V3",
33573359
"phi-4": "microsoft/phi-4",
3360+
"gpt-oss-20b": "openai/gpt-oss-20b",
3361+
"gpt-oss-120b": "openai/gpt-oss-120b",
33583362
},
33593363
"open-ai": {
33603364
"o1-mini": "o1-mini",

src/unitxt/llm_as_judge_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Criteria(Artifact):
3232
prediction_field: Optional[str] = None
3333
"""The prediction field name this criteria expects and refers to, e.g. answer/model response/summary"""
3434

35-
context_fields: Union[str, List[str], Dict[str, str]] = None
35+
context_fields: Optional[Union[str, List[str], Dict[str, str]]] = None
3636
"""The context field names this criteria expects, i.e. [context]/[source article, user questions]"""
3737

3838
@staticmethod
@@ -370,7 +370,7 @@ class DirectCriteriaCatalogEnum(Enum):
370370
name="conciseness",
371371
description="Is the response concise and to the point?",
372372
prediction_field="response",
373-
context_fields=[],
373+
context_fields=["question"],
374374
options=[
375375
CriteriaOption(
376376
name="Yes",

0 commit comments

Comments
 (0)