From 727d36b4b7e3f08d9b327638cc6f2313e00aeac3 Mon Sep 17 00:00:00 2001 From: tytodd Date: Wed, 1 Apr 2026 14:37:40 -0700 Subject: [PATCH] (no commit message) --- README.md | 6 ++++-- config.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ program.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 config.json create mode 100644 program.json diff --git a/README.md b/README.md index 610fba1..0f22ae6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# email-spam-gpt-oss-120b - +--- +arbiter_probe: modaic/gpt-oss-120b-probe +is_arbiter: true +--- \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..7af4b4d --- /dev/null +++ b/config.json @@ -0,0 +1,52 @@ +{ + "model": null, + "signature": { + "$defs": { + "Reasoning": { + "type": "dspy.Reasoning" + } + }, + "description": "Classify an email as spam or not spam based on its subject and body.\n\nInstructions:\n1. Read the subject and body of the email carefully.\n2. Look for common spam indicators: urgency, suspicious links, unsolicited offers,\n misleading sender info, or requests for personal information.\n3. Output \"spam\" if the email is spam, or \"not spam\" if it is legitimate.", + "properties": { + "subject": { + "__dspy_field_type": "input", + "desc": "The email subject line", + "prefix": "Subject:", + "title": "Subject", + "type": "string" + }, + "body": { + "__dspy_field_type": "input", + "desc": "The email body text", + "prefix": "Body:", + "title": "Body", + "type": "string" + }, + "reasoning": { + "$ref": "#/$defs/Reasoning", + "__dspy_field_type": "output", + "desc": "Your reasoning for your answer. Inlude any uncertainties about your answer or ambiguity in the task.", + "prefix": "Reasoning:" + }, + "is_spam": { + "__dspy_field_type": "output", + "desc": "Whether the email is spam: 'spam' or 'not spam'", + "enum": [ + "spam", + "not spam" + ], + "prefix": "Is Spam:", + "title": "Is Spam", + "type": "string" + } + }, + "required": [ + "subject", + "body", + "reasoning", + "is_spam" + ], + "title": "StringSignature", + "type": "object" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..270372a --- /dev/null +++ b/program.json @@ -0,0 +1,44 @@ +{ + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Classify an email as spam or not spam based on its subject and body.\n\nInstructions:\n1. Read the subject and body of the email carefully.\n2. Look for common spam indicators: urgency, suspicious links, unsolicited offers,\n misleading sender info, or requests for personal information.\n3. Output \"spam\" if the email is spam, or \"not spam\" if it is legitimate.", + "fields": [ + { + "prefix": "Subject:", + "description": "The email subject line" + }, + { + "prefix": "Body:", + "description": "The email body text" + }, + { + "prefix": "Reasoning:", + "description": "Your reasoning for your answer. Inlude any uncertainties about your answer or ambiguity in the task." + }, + { + "prefix": "Is Spam:", + "description": "Whether the email is spam: 'spam' or 'not spam'" + } + ] + }, + "lm": { + "model": "together_ai/openai/gpt-oss-120b", + "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.13", + "dspy": "3.1.3", + "cloudpickle": "3.1" + } + } +} \ No newline at end of file