Files
reuters-topic-classifier/config.json
2026-02-10 18:20:01 -08:00

46 lines
1.7 KiB
JSON

{
"model": null,
"signature": {
"description": "Classify a news article into one of 8 financial/business topic categories.\n\nCategories:\n- acq: Mergers, acquisitions, corporate takeovers\n- crude: Oil, petroleum, crude oil markets\n- earn: Corporate earnings, financial results, profits\n- grain: Agriculture, grain commodities, crops\n- interest: Interest rates, central bank policy, borrowing\n- money-fx: Currency exchange, foreign exchange markets, monetary policy\n- ship: Shipping, maritime, freight, transportation\n- trade: International trade, tariffs, exports/imports\n\nFirst reason through your thought process in the `reasoning` field.\nConsider the main subject, key terms, and context of the article.\nBe sure to verbalize any uncertainty. Then output your conclusion.",
"properties": {
"text": {
"__dspy_field_type": "input",
"desc": "The news article text to classify",
"prefix": "Text:",
"title": "Text",
"type": "string"
},
"reasoning": {
"__dspy_field_type": "output",
"desc": "Your step by step reasoning about the article's topic. Verbalize uncertainty.",
"prefix": "Reasoning:",
"title": "Reasoning",
"type": "string"
},
"label": {
"__dspy_field_type": "output",
"desc": "The topic category of the article",
"enum": [
"acq",
"crude",
"earn",
"grain",
"interest",
"money-fx",
"ship",
"trade"
],
"prefix": "Label:",
"title": "Label",
"type": "string"
}
},
"required": [
"text",
"reasoning",
"label"
],
"title": "ReutersTopicClassifier",
"type": "object"
}
}