24 lines
755 B
Python
24 lines
755 B
Python
def analyze_impact(content: str) -> float:
|
|
"""
|
|
Simulates an AI Agent analyzing the impact of a signal.
|
|
In a real system, this would call an LLM (GPT-4/DeepSeek).
|
|
"""
|
|
content_lower = content.lower()
|
|
|
|
# Heuristic Rule-based Scoring (Simulation)
|
|
score = 0.3 # Base score
|
|
|
|
high_impact_keywords = ["release", "announce", "sota", "benchmark", "breakthrough", "deepseek", "gpt-5"]
|
|
medium_impact_keywords = ["update", "feature", "paper", "research", "tool"]
|
|
|
|
for k in high_impact_keywords:
|
|
if k in content_lower:
|
|
score += 0.3
|
|
|
|
for k in medium_impact_keywords:
|
|
if k in content_lower:
|
|
score += 0.1
|
|
|
|
# Cap at 0.99
|
|
return min(score, 0.99)
|