[project]
name = "model-agent-rag"
version = "0.19.6"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "guozr", email = "guozr1997@hotmail.com" }
]
requires-python = ">=3.12"
dependencies = [
"agno[os]>=3.1.2",
"chonkie>=1.7.0",
"click>=8.5.0",
"fastapi>=0.162.0",
"loguru>=0.8.0",
"openai>=3.29.0",
"polib>=1.2.0",
"pyarrow>=26.0.1",
"pyjwt>=2.15.1",
"python-dotenv>=1.2.4",
"qdrant-client>=1.20.0",
"ragas",
"sqlalchemy>=2.1.6",
"uvicorn>=0.54.0",
]
[project.scripts]
model-agent-rag = "src:main"
[tool.uv.build-backend]
module-root = ""
module-name = "src"
[[tool.uv.index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[tool.uv.sources]
ragas = { git = "https://gh-proxy.com/https://github.com/starmountain1997/ragas", rev = "agno" }
[tool.ruff]
line-length = 88
target-version = "py312"
extend-exclude = [".agents"]
[tool.ruff.lint]
extend-select = [
"I",
"UP",
"Q",
"E", "W",
"B",
"SIM", "C4", "RET", "PIE", "RSE", "FLY", "PERF", "FURB",
"PT",
"ASYNC", "FA", "TC",
"ICN", "TID", "N", "G", "EXE", "INP", "PGH",
"RUF",
"BLE",
]
ignore = [
"E501",
"RUF001", "RUF002", "RUF003",
]
[tool.ruff.lint.per-file-ignores]
"deploy/**" = ["INP001"]
"tests/**" = ["INP001"]
[tool.ty.src]
exclude = [".agents"]
[tool.importlinter]
root_packages = ["src"]
[[tool.importlinter.contracts]]
name = "corpus/manifest/schema 底座 → points/sources/ingest/agent 中层 → 顶层入口"
type = "layers"
layers = [
"src.chat | src.publish | src.sync | src.eval",
"src.ingest | src.agent",
"src.points | src.sources",
"src.schema | src.manifest",
"src.corpus",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[build-system]
requires = ["uv_build>=0.12.23,<0.13.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"hypothesis>=6.170.17",
"import-linter>=2.17",
"mdformat>=1.0.0",
"memray>=1.20.0",
"pip-audit>=2.10.1",
"playwright>=1.64.0",
"pytest>=9.1.1",
"radon>=6.0.1",
"ruff>=0.17.0",
"ty>=0.0.86",
"vulture>=2.16",
]