server-inference push lex_glue_scotus

This commit is contained in:
2026-04-23 23:06:04 -07:00
parent bb28d69420
commit 68c0860965
3 changed files with 96 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
# lex_glue_scotus ---
{}
---
# lex_glue_scotus

52
config.json Normal file
View File

@@ -0,0 +1,52 @@
{
"model": null,
"signature": {
"description": "Classify a SCOTUS case text into one of 14 issue IDs.\n\nLabel meanings:\n1=Criminal Procedure, 2=Civil Rights, 3=First Amendment, 4=Due Process,\n5=Privacy, 6=Attorneys, 7=Unions, 8=Economic Activity, 9=Judicial Power,\n10=Federalism, 11=Interstate Relations, 12=Federal Taxation,\n13=Miscellaneous, 14=Private Action.\n\nAs 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": {
"opinion_text": {
"__dspy_field_type": "input",
"desc": "SCOTUS case text.",
"prefix": "Opinion Text:",
"title": "Opinion Text",
"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"
},
"issue_id": {
"__dspy_field_type": "output",
"desc": "Issue ID 1-14 where 1=Criminal Procedure, 2=Civil Rights, 3=First Amendment, 4=Due Process, 5=Privacy, 6=Attorneys, 7=Unions, 8=Economic Activity, 9=Judicial Power, 10=Federalism, 11=Interstate Relations, 12=Federal Taxation, 13=Miscellaneous, 14=Private Action.",
"enum": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14"
],
"prefix": "Issue Id:",
"title": "Issue Id",
"type": "string"
}
},
"required": [
"opinion_text",
"reasoning",
"issue_id"
],
"title": "LexGlueScotusIssueJudgeSig",
"type": "object"
}
}

40
program.json Normal file
View File

@@ -0,0 +1,40 @@
{
"traces": [],
"train": [],
"demos": [],
"signature": {
"instructions": "Classify a SCOTUS case text into one of 14 issue IDs.\n\nLabel meanings:\n1=Criminal Procedure, 2=Civil Rights, 3=First Amendment, 4=Due Process,\n5=Privacy, 6=Attorneys, 7=Unions, 8=Economic Activity, 9=Judicial Power,\n10=Federalism, 11=Interstate Relations, 12=Federal Taxation,\n13=Miscellaneous, 14=Private Action.\n\nAs 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.",
"fields": [
{
"prefix": "Opinion Text:",
"description": "SCOTUS case text."
},
{
"prefix": "Reasoning:",
"description": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant."
},
{
"prefix": "Issue Id:",
"description": "Issue ID 1-14 where 1=Criminal Procedure, 2=Civil Rights, 3=First Amendment, 4=Due Process, 5=Privacy, 6=Attorneys, 7=Unions, 8=Economic Activity, 9=Judicial Power, 10=Federalism, 11=Interstate Relations, 12=Federal Taxation, 13=Miscellaneous, 14=Private Action."
}
]
},
"lm": {
"model": "together_ai/Qwen/Qwen2.5-7B-Instruct-Turbo",
"model_type": "chat",
"cache": true,
"num_retries": 3,
"finetuning_model": null,
"launch_kwargs": {},
"train_kwargs": {},
"temperature": null,
"max_tokens": null
},
"metadata": {
"dependency_versions": {
"python": "3.11",
"dspy": "3.1.3",
"cloudpickle": "3.1"
}
}
}