server-inference push enron_email_type

This commit is contained in:
2026-04-25 21:31:35 -07:00
parent 53fc2a9f77
commit 2f9324cdc0
3 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
---
{}
---

44
config.json Normal file
View File

@@ -0,0 +1,44 @@
{
"model": null,
"signature": {
"description": "Classify this email into exactly one of the following types.\n\nDefinitions:\n- action_request: The sender is asking the recipient to do something\n specific (reply, send a file, approve, complete a task, etc.).\n- informational: The email conveys information, updates, or news without\n a specific ask (status updates, FYIs, reports, summaries).\n- meeting_request: The primary purpose is scheduling, confirming, or\n cancelling a meeting, call, or event.\n- newsletter: Bulk or automated distribution from an external service,\n publication, or mailing list (market data feeds, industry newsletters,\n promotional emails).\n- social: Casual personal correspondence \u2014 greetings, jokes, family\n updates, chain emails, congratulations.\n- legal_notice: Regulatory filings, formal legal correspondence,\n compliance notices, or attorney communications.\n\nChoose the single best-fit type. When multiple types are plausible,\nprefer the type that best captures the primary purpose of the email.\n\nAs you reason, note any uncertainties, ambiguities, and gaps \u2014 both in\nhow the definitions apply to this email and in whether you have enough\ncontext to classify it confidently.",
"properties": {
"subject": {
"__dspy_field_type": "input",
"desc": "The email subject line (may be empty).",
"prefix": "Subject:",
"title": "Subject",
"type": "string"
},
"body": {
"__dspy_field_type": "input",
"desc": "The email body text (may be truncated).",
"prefix": "Body:",
"title": "Body",
"type": "string"
},
"email_type": {
"__dspy_field_type": "output",
"desc": "The email type \u2014 one of the six defined categories.",
"enum": [
"action_request",
"informational",
"meeting_request",
"newsletter",
"social",
"legal_notice"
],
"prefix": "Email Type:",
"title": "Email Type",
"type": "string"
}
},
"required": [
"subject",
"body",
"email_type"
],
"title": "EnronEmailTypeJudgeSig",
"type": "object"
}
}

40
program.json Normal file
View File

@@ -0,0 +1,40 @@
{
"traces": [],
"train": [],
"demos": [],
"signature": {
"instructions": "Classify this email into exactly one of the following types.\n\nDefinitions:\n- action_request: The sender is asking the recipient to do something\n specific (reply, send a file, approve, complete a task, etc.).\n- informational: The email conveys information, updates, or news without\n a specific ask (status updates, FYIs, reports, summaries).\n- meeting_request: The primary purpose is scheduling, confirming, or\n cancelling a meeting, call, or event.\n- newsletter: Bulk or automated distribution from an external service,\n publication, or mailing list (market data feeds, industry newsletters,\n promotional emails).\n- social: Casual personal correspondence \u2014 greetings, jokes, family\n updates, chain emails, congratulations.\n- legal_notice: Regulatory filings, formal legal correspondence,\n compliance notices, or attorney communications.\n\nChoose the single best-fit type. When multiple types are plausible,\nprefer the type that best captures the primary purpose of the email.\n\nAs you reason, note any uncertainties, ambiguities, and gaps \u2014 both in\nhow the definitions apply to this email and in whether you have enough\ncontext to classify it confidently.",
"fields": [
{
"prefix": "Subject:",
"description": "The email subject line (may be empty)."
},
{
"prefix": "Body:",
"description": "The email body text (may be truncated)."
},
{
"prefix": "Email Type:",
"description": "The email type \u2014 one of the six defined categories."
}
]
},
"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"
}
}
}