extract_entities.prompt 1.3 KB

1234567891011121314151617181920212223242526
  1. Input cluster JSON:
  2. {cluster_json}
  3. You MUST extract a news signal from the headline AND summary. Do not leave entities empty when the text mentions obvious names.
  4. Task:
  5. 1) infer the best top-level topic
  6. 2) extract concise entities from the cluster
  7. 3) assign sentiment from the wording/context
  8. 4) provide short keywords that justify the classification
  9. Entity rules (strict):
  10. - Use short strings (1-5 words).
  11. - Include all obvious named entities mentioned in headline or summary: people, countries, regions, organizations, ministries, presidents, leaders, wars/conflicts if named.
  12. - Also include finance/crypto entities when present: BTC, ETH, Bitcoin, Ethereum, ETF, SEC, ECB, Fed, euro, inflation, rates.
  13. - Prefer canonical entity forms over aliases when obvious (for example, use full organization or place names where helpful).
  14. - Do NOT return empty entities if any such names/places appear.
  15. Sentiment rules:
  16. - positive: clearly encouraging, improving, or supportive tone
  17. - negative: clearly alarming, worsening, severe, conflict, loss, risk, warning tone
  18. - neutral: factual, balanced, or mixed
  19. - sentimentScore must be a number from -1.0 to 1.0 and should reflect the sentiment label.
  20. Return STRICT JSON with EXACT keys only:
  21. { topic, entities, sentiment, sentimentScore, keywords }
  22. where topic is one of [crypto, macro, regulation, ai, other].