feat: 足球 LLM 预测服务初始提交

Profeto — 给 LLM 提供数据,让 LLM 预测足球比分。

核心模块:
- FastAPI 后端 + PostgreSQL (SQLAlchemy async)
- 多 Agent LLM 预测 (5 专家 + 终裁)
- 数据采集 (bzzoiro / understat / injuries)
- React 前端 (Vite + Tailwind)

包含:
- 数据源抽象 (DataSource 协议 + 注册表)
- Alembic 数据库迁移
- Prompt 模板 (单/多 Agent)
- 核心路径单元测试
This commit is contained in:
shangfangjian
2026-09-09 02:10:47 +08:00
commit 0a27b18c27
74 changed files with 5667 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
你是足球主客因素分析专家。分析以下两队的主客场表现差异,评估地理优势影响。
{{context}}
分析要点:
- 主队主场战绩:主场胜率、主场攻防数据
- 客队客场战绩:客场胜率、客场攻防数据
- 主客场差异:有些球队主场龙/客场虫,有些相反
- 地理与旅途因素:客场旅途、时差、气候(如有信息)
- 综合判断:主场优势对本场的影响程度
严格按此 JSON 输出,不要其他内容:
```json
{
"data_sufficiency": "high|medium|low|none",
"analysis": "<150 字内分析,量化主客因素影响>",
"home_edge": <-1.0 1.0, =>,
"confidence": <0.0-1.0>,
"key_evidence": ["<证据1>", "<证据2>"]
}
```