- 在 docker-compose.yml 中新增 PostgreSQL 服务配置,包括健康检查和环境变量设置。 - 添加 PostgreSQL 初始化脚本,确保数据库和用户的创建及权限配置。 - 更新 pyproject.toml,新增 asyncpg 和 graspologic 依赖。 - 重构知识库管理逻辑,使用 LightRagBasedKB 替代原有 KnowledgeBase 类,优化知识库的管理和查询功能。 - 更新前端 API 接口,调整文件处理和数据库创建逻辑,支持新的嵌入模型配置。
66 lines
1.6 KiB
TOML
66 lines
1.6 KiB
TOML
[project]
|
|
name = "yuxi-know"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"asyncpg>=0.30.0",
|
|
"colorlog>=6.9.0",
|
|
"dashscope>=1.23.2",
|
|
"docx2txt>=0.9",
|
|
"fastapi>=0.115.12",
|
|
"flagembedding>=1.3.4",
|
|
"graspologic>=3.3.0",
|
|
"langchain-community>=0.3.22",
|
|
"langchain-deepseek>=0.1.3",
|
|
"langchain-huggingface>=0.2.0",
|
|
"langchain-openai>=0.3.14",
|
|
"langchain-tavily>=0.2.3",
|
|
"langchain-together>=0.3.0",
|
|
"langgraph>=0.3.34",
|
|
"langgraph-checkpoint-sqlite>=2.0.7",
|
|
"langgraph-cli[inmem]>=0.1.54",
|
|
"langsmith>=0.3.37",
|
|
"lightrag-hku>=1.3.9",
|
|
"llama-index>=0.12.33",
|
|
"llama-index-readers-file>=0.4.7",
|
|
"mineru>=2.0.6",
|
|
"neo4j>=5.28.1",
|
|
"networkx>=3.5",
|
|
"openai>=1.76.0",
|
|
"opencv-python-headless>=4.11.0.86",
|
|
"paddleocr>=2.10.0",
|
|
"pyjwt>=2.8.0",
|
|
"pymilvus>=2.5.8",
|
|
"pymupdf>=1.25.5",
|
|
"python-dotenv>=1.1.0",
|
|
"python-jose[cryptography]>=3.4.0",
|
|
"python-multipart>=0.0.20",
|
|
"pyyaml>=6.0.2",
|
|
"qianfan>=0.4.12.3",
|
|
"rapidocr-onnxruntime>=1.4.4",
|
|
"tavily-python>=0.7.0",
|
|
"unstructured>=0.17.2",
|
|
"uvicorn[standard]>=0.34.2",
|
|
"zhipuai>=2.1.5.20250421",
|
|
]
|
|
[tool.ruff]
|
|
line-length = 210 # 代码最大行宽
|
|
lint.select = [ # 选择的规则
|
|
"F",
|
|
"E",
|
|
"W",
|
|
"UP",
|
|
]
|
|
lint.ignore = ["F401"] # 忽略的规则
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"vllm>=0.8.5.post1",
|
|
]
|
|
|
|
# uv 配置 - 使用阿里云镜像源
|
|
[tool.uv]
|
|
index-url = "https://mirrors.aliyun.com/pypi/simple/"
|