Skip to content

Commit 28ba925

Browse files
committed
feat: add detailed request messages to disaster SMS classification
1 parent a99b88a commit 28ba925

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/modules/ingest/app/sources/disaster-sms.source.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,15 @@ async function resolveDisasterKinds(
193193
id: item.id,
194194
text: item.text,
195195
})),
196-
request:
196+
request: [
197197
'Prefer labels that describe a CONFIRMED event over labels that describe risk, prevention, guidance, or general context.',
198+
'- "민방공" is ONLY for wartime / national-security civil-defense alerts (e.g., air-raid/missile warnings, evacuation orders, civil-defense drills/sirens). NEVER use "민방공" for general safety tips, accident prevention, weather-related cautions, or ambiguous public-safety notices. If it’s not clearly civil-defense, choose another label; if none fits, choose "기타".',
199+
'- "AI" means Avian Influenza (조류인플루엔자), NOT Artificial Intelligence. Use "AI" only for messages about poultry/birds + outbreaks/suspected/confirmed cases, quarantine, culling, movement restrictions, test results, etc. If the text mentions “AI” as Artificial Intelligence or is unclear, prefer "기타".',
200+
'- "테러" is ONLY for terrorism-related threats/incidents or official counter-terror alerts. Do NOT use it for ordinary crime, accidents, or vague danger warnings; if unclear, prefer "기타".',
201+
'- "사이버" is ONLY for cyber incidents (hacking, ransomware, DDoS, malware, data breaches, unauthorized access). If it is primarily a communication/service outage without cyber-attack evidence, consider "통신" instead; if still unclear, use "기타".',
202+
'- "금융" is ONLY for financial issues such as voice phishing/smishing, bank/card/account fraud, financial-institution service disruptions, or payment system incidents. If unclear, prefer "기타".',
203+
'- Default rule for "기타": If no label is a clear match, choose "기타".',
204+
].join('\n'),
198205
});
199206
} catch (error) {
200207
logger.warn({ error, pendingCount: pending.length }, 'Disaster SMS kind classification failed, fallback to other');

0 commit comments

Comments
 (0)