From 68c0860965a38b910d750bbbbe538b75a1b6fbf9 Mon Sep 17 00:00:00 2001 From: Tyrin Todd Date: Thu, 23 Apr 2026 23:06:04 -0700 Subject: [PATCH] server-inference push lex_glue_scotus --- README.md | 5 ++++- config.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ program.json | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 config.json create mode 100644 program.json diff --git a/README.md b/README.md index 57ce13f..93304a0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# lex_glue_scotus +--- +{} +--- +# lex_glue_scotus \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..cd6f68a --- /dev/null +++ b/config.json @@ -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" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..a522afd --- /dev/null +++ b/program.json @@ -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" + } + } +} \ No newline at end of file