Files
trumpsignal-backend/app/services
k cc1dda832b feat(kol-v2): upgrade KOL analysis prompt — float divergence score, post_type, richer signals
Prompt v1 → v2 changes:

1. talks_vs_trades_score (float 0-1) replaces boolean flag
   - 0.7-1.0: strong divergence (bullish thesis + reducing, public buy + silent now)
   - 0.4-0.69: moderate (risk mgmt language alongside bullish, tone shift)
   - 0.1-0.39: weak (minor hedges)
   - 0.0: consistent or no position signals
   - talks_vs_trades_flag (bool) kept as backward-compat alias (score >= 0.5)

2. post_type field: trade_update | macro_thesis | research | news_recap | opinion | other
   Lets downstream filter by content quality before acting on signals.

3. summary cap raised 80→200 chars (2-3 sentences)
   80 chars was too tight for 5000-word Substack essays.

4. Chinese-language divergence cues added to prompt
   减仓了/止盈/降低了仓位/观望/风控 etc. — most KOL posts are in Chinese or
   English with Chinese asides; the old prompt only covered English patterns.

5. max_tokens raised 1500→2000 (Anthropic) and 1500→2000 (OAI non-reasoning)
   Complex essays with 5+ tickers were truncating.

Backward-compatible: callers checking talks_vs_trades_flag bool still work.
Version bumped kol-v1→kol-v2 for re-analysis tracking.

72 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 18:06:46 +08:00
..
2026-04-20 23:05:59 +08:00
2026-04-21 19:33:24 +08:00
2026-04-20 23:05:59 +08:00