diff --git a/README.md b/README.md index e69de29..1388a48 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,3 @@ +--- +{} +--- \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..0435a31 --- /dev/null +++ b/config.json @@ -0,0 +1,138 @@ +{ + "model": null, + "signature": { + "description": "Classify a contract provision into the correct provision type from the Ledgar taxonomy.\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": { + "provision_text": { + "__dspy_field_type": "input", + "desc": "Contract provision text to classify.", + "prefix": "Provision Text:", + "title": "Provision 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" + }, + "provision_type": { + "__dspy_field_type": "output", + "desc": "Provision type label from the 100-class Ledgar taxonomy (e.g. 'Governing Laws', 'Confidentiality', 'Indemnifications').", + "enum": [ + "Adjustments", + "Agreements", + "Amendments", + "Anti-Corruption Laws", + "Applicable Laws", + "Approvals", + "Arbitration", + "Assignments", + "Assigns", + "Authority", + "Authorizations", + "Base Salary", + "Benefits", + "Binding Effects", + "Books", + "Brokers", + "Capitalization", + "Change In Control", + "Closings", + "Compliance With Laws", + "Confidentiality", + "Consent To Jurisdiction", + "Consents", + "Construction", + "Cooperation", + "Costs", + "Counterparts", + "Death", + "Defined Terms", + "Definitions", + "Disability", + "Disclosures", + "Duties", + "Effective Dates", + "Effectiveness", + "Employment", + "Enforceability", + "Enforcements", + "Entire Agreements", + "Erisa", + "Existence", + "Expenses", + "Fees", + "Financial Statements", + "Forfeitures", + "Further Assurances", + "General", + "Governing Laws", + "Headings", + "Indemnifications", + "Indemnity", + "Insurances", + "Integration", + "Intellectual Property", + "Interests", + "Interpretations", + "Jurisdictions", + "Liens", + "Litigations", + "Miscellaneous", + "Modifications", + "No Conflicts", + "No Defaults", + "No Waivers", + "Non-Disparagement", + "Notices", + "Organizations", + "Participations", + "Payments", + "Positions", + "Powers", + "Publicity", + "Qualifications", + "Records", + "Releases", + "Remedies", + "Representations", + "Sales", + "Sanctions", + "Severability", + "Solvency", + "Specific Performance", + "Submission To Jurisdiction", + "Subsidiaries", + "Successors", + "Survival", + "Tax Withholdings", + "Taxes", + "Terminations", + "Terms", + "Titles", + "Transactions With Affiliates", + "Use Of Proceeds", + "Vacations", + "Venues", + "Vesting", + "Waiver Of Jury Trials", + "Waivers", + "Warranties", + "Withholdings" + ], + "prefix": "Provision Type:", + "title": "Provision Type", + "type": "string" + } + }, + "required": [ + "provision_text", + "reasoning", + "provision_type" + ], + "title": "LexGlueLedgarJudgeSig", + "type": "object" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..c95de23 --- /dev/null +++ b/program.json @@ -0,0 +1,40 @@ +{ + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Classify a contract provision into the correct provision type from the Ledgar taxonomy.\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": "Provision Text:", + "description": "Contract provision text to classify." + }, + { + "prefix": "Reasoning:", + "description": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant." + }, + { + "prefix": "Provision Type:", + "description": "Provision type label from the 100-class Ledgar taxonomy (e.g. 'Governing Laws', 'Confidentiality', 'Indemnifications')." + } + ] + }, + "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