48 lines
1.6 KiB
JSON
48 lines
1.6 KiB
JSON
{
|
|
"model": null,
|
|
"signature": {
|
|
"description": "Determine whether the summary is hallucinated given the source document.As you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.",
|
|
"properties": {
|
|
"document": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "Source document that the summary should reflect.",
|
|
"prefix": "Document:",
|
|
"title": "Document",
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "Summary to evaluate for hallucination.",
|
|
"prefix": "Summary:",
|
|
"title": "Summary",
|
|
"type": "string"
|
|
},
|
|
"reasoning": {
|
|
"__dspy_field_type": "output",
|
|
"desc": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant.",
|
|
"prefix": "Reasoning:",
|
|
"title": "Reasoning",
|
|
"type": "string"
|
|
},
|
|
"hallucination": {
|
|
"__dspy_field_type": "output",
|
|
"desc": "Final hallucination label: 'yes' if the summary is hallucinated, otherwise 'no'.",
|
|
"enum": [
|
|
"yes",
|
|
"no"
|
|
],
|
|
"prefix": "Hallucination:",
|
|
"title": "Hallucination",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"document",
|
|
"summary",
|
|
"reasoning",
|
|
"hallucination"
|
|
],
|
|
"title": "HaluEvalSummarizationJudgeSig",
|
|
"type": "object"
|
|
}
|
|
} |