Files
countbot-ai__countbot/requirements.txt
T
RIC 28b635177a fix(deps): un-comment jieba so default installs get word-level CJK tokenization
BM25Index already supports jieba and falls back to per-character
tokenization when it is missing. Because the dependency was commented
out, a default 'pip install -r requirements.txt' silently ran the
degraded path, so the wiki search quality users actually get is well
below what the code (and our published eval numbers in #107) assume.

Measured impact on the 60-question eval (with vs without jieba):
- direct-question recall@5: 0.80 -> 0.53
- paraphrased-question recall@5: 0.20 -> 0.10 (no top-1 hit at all)
- exact-fact recall@10: 1.00 -> 0.80

One-line change, no code changes: the graceful fallback stays for
anyone who deliberately removes it.

Refs: #107
2026-09-03 17:13:12 +08:00

67 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================
# CountBot 依赖配置
# ============================================
# ── 核心框架 ──────────────────────────────
fastapi>=0.115.0
uvicorn==0.32.0
sqlalchemy>=2.0.36
pydantic>=2.10.0
pydantic-settings>=2.7.0
loguru>=0.7.3
python-dotenv>=1.0.1
# ── HTTP 客户端 ───────────────────────────
httpx>=0.28.0
requests>=2.32.0
# ── LLM 相关 ─────────────────────────────
anthropic>=0.40.0
openai>=1.58.0
# ── 数据库 ───────────────────────────────
aiosqlite>=0.20.0
# ── 定时任务 ─────────────────────────────
croniter>=5.0.0
# ── 桌面客户端 ────────────────────────────
pywebview>=5.3
# ── 网页内容提取 ──────────────────────────
beautifulsoup4>=4.14.2
# ── Wiki 知识库 ────────────────────────────
python-frontmatter>=1.0.0
PyYAML>=6.0
# ── 渠道 SDK ─────────────────────────────
qq-botpy>=1.2.1
dingtalk-stream>=0.24.3
lark-oapi>=1.5.3
python-telegram-bot>=20.7
websockets>=12.0
# ============================================
# 可选依赖(按需安装)
# ============================================
# ── 增强网页抓取反爬虫、JS渲染─────────
# 注意scrapling 包体积较大(~100MB包含 playwright 等依赖
# 不安装不影响运行,会自动回退到 httpx基础 HTTP 请求)
# scrapling>=0.3.6
# ── 极强反爬虫(仅在 scrapling 安装后需要)──
# camoufox>=0.4.11
# ── MCP 客户端(默认关闭,按需安装)──
# 不安装不影响运行MCP 功能默认关闭
mcp>=1.0.0
# ── Wiki 知识库中文分词(可选,提升搜索质量)──
# 不安装会自动回退为单字分词,不影响基本功能
jieba>=0.42