Files
HuiBrain/requirements.txt
EduBrain Dev 496e11e26e refactor: 移除 PostgreSQL 支持,简化为纯 SQLite 部署
- config.py: DATABASE_URL 默认值改为 SQLite
- database.py: 移除 PostgreSQL 分支,简化为纯 SQLite
- models/base.py: 移除 pgvector 导入和条件分支
- search_service.py: 移除 _search_postgres 方法
- import_service.py: 移除 pgvector 相关代码
- requirements.txt: 移除 asyncpg/alembic/pgvector 依赖
- pyproject.toml: 同步移除相关依赖
- docker-compose.yml: 移除 db 服务,- 删除 alembic.ini/Dockerfile.db/sql 目录
- README.md: 更新文档,移除 PostgreSQL 相关内容

适合 NAS 等资源受限环境的轻量级部署
2026-04-14 14:50:53 +08:00

39 lines
884 B
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.
# ── Web 框架 ──
fastapi>=0.115.0,<1.0.0
uvicorn[standard]>=0.32.0,<1.0.0
pydantic-settings>=2.6.0,<3.0.0
python-multipart>=0.0.18
# ── 数据库 ──
sqlalchemy[asyncio]>=2.0.36,<3.0.0
aiosqlite>=0.20.0,<1.0.0
# ── 嵌入模型 SDK ──
openai>=1.58.0,<2.0.0
zhipuai>=2.1.0,<3.0.0
dashscope>=1.20.0,<2.0.0
sentence-transformers>=3.3.0,<4.0.0
httpx>=0.27.0,<1.0.0
# ── OCR可选按需安装 ──
# paddleocr>=2.9.0,<3.0.0
# paddlepaddle 单独安装
# ── MCP SDK ──
mcp[cli]>=1.2.0,<2.0.0
# ── Markdown 解析 ──
python-frontmatter>=1.0.0,<2.0.0
# ── Word 文档解析 ──
python-docx>=1.1.0,<2.0.0
# ── 中文分词BM25 搜索引擎) ──
jieba>=0.42.1
# ── 工具库 ──
numpy>=1.26.0,<3.0.0
# ── 企业微信智能机器人 SDKWebSocket 长连接) ──
wecom-aibot-python-sdk>=1.0.0