Files
ragservice/requirements.txt
2026-09-21 21:08:51 +08:00

42 lines
904 B
Plaintext
Raw Permalink 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.141.1
uvicorn[standard]==0.52.4
pydantic==2.13.5
pydantic-settings==2.15.0
# SQLite3 兼容层 (系统自带 sqlite3 版本过低时 ChromaDB 需要 >= 3.35.0;Windows 无此 wheel,main.py 自动回退)
pysqlite3-binary==0.5.4; sys_platform != "win32"
# 向量数据库 - ChromaDB 1.5+
chromadb==1.5.9
# Ollama 客户端 (仅用于嵌入)
ollama==0.6.2
# LangChain 集成 (现代版本,兼容 langchain-core 1.x)
langchain-ollama==1.1.0
langchain-chroma==1.1.0
# LLM 编排
langgraph==1.2.11
langchain==1.4.0
langchain-community==0.4.2
langchain-core==1.6.2
langchain-text-splitters==1.1.2
langchain-openai==1.6.0
# 文档处理
chardet==7.6.0 # 编码检测
# 中文分词 (置信度计算用)
jieba==0.42.1
# 重排
bm25s==0.3.11
# 实用工具
python-multipart==0.0.32
python-dotenv==1.2.3
# TypeSafe 回答打分(独立裁判)
typesafe-sdk==0.7.0