Elaina
|
c828fceae9
|
chore: update README with complete algorithm and 100-round 4-topic results
|
2026-04-22 12:12:04 +08:00 |
|
Elaina
|
07b66d3b58
|
chore: update README with full algorithm, remove concrete hardware specs
|
2026-04-22 11:14:19 +08:00 |
|
Elaina
|
9a2b1e3b6a
|
chore: remove paper, add summary, update README
|
2026-04-22 10:49:11 +08:00 |
|
Elaina
|
a8204a50b5
|
docs: 更新 README.md,包含算法细节、局限性、适用场景
|
2026-04-22 09:49:17 +08:00 |
|
Elaina
|
071f9ef418
|
feat: 上下文门控器初始实现
- anchor.py: 锚点提取(中文 2/3-gram、英文单词、代码标识符)
- block.py: 对话块数据结构
- topic_gate.py: 话题门控(overlap/new_ratio 判断切换)
- sparse.py: 稀疏召回(BM25/IDF-overlap + exact match 加分)
- selector.py: 最小覆盖贪心选择
- gatekeeper.py: 完整流程封装
- tests/: 单元测试 + 端到端测试(含 MiniMax API 验证)
特性:
- 纯 Python,无额外模型依赖
- 支持 2 核 2G 环境
- 话题门控 + 稀疏召回 + 最小覆盖选择
|
2026-04-22 01:09:35 +08:00 |
|