RAG-POC/pyproject.toml

60 lines
1.4 KiB
TOML

[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "knowledgegraph-graphrag"
version = "0.1.0"
description = "Production-oriented KnowledgeGraph ingestion, indexing, retrieval, and answer pipeline"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"alembic>=1.13,<2",
"fastapi>=0.115,<1",
"httpx>=0.27,<1",
"networkx>=3.3,<4",
"pgvector>=0.3,<1",
"PyJWT>=2.9,<3",
"pydantic>=2.8,<3",
"pydantic-settings>=2.4,<3",
"psycopg[binary]>=3.2,<4",
"sqlalchemy>=2.0,<3",
"trafilatura>=1.12,<3",
"uvicorn[standard]>=0.32,<1",
]
[project.optional-dependencies]
test = [
"pytest>=8.3,<9",
"pytest-cov>=5,<7",
]
[project.scripts]
knowledgegraph = "graphrag_platform.cli:main_all"
knowledgegraph-worker = "graphrag_platform.worker:main"
[tool.hatch.build.targets.wheel]
packages = [
"src/graphrag_platform",
"src/01_normalize_content.py",
"src/02_clean_content.py",
"src/03_define_knowledge_model.py",
"src/04_extract_knowledge.py",
"src/05_reconcile_knowledge.py",
"src/06_build_knowledge_graph.py",
"src/07_build_communities.py",
"src/08_build_retrieval_index.py",
"src/09_query_graphrag.py",
"src/10_generate_answer.py",
]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
markers = [
"performance: opt-in performance and load checks",
]
[tool.coverage.run]
source = ["graphrag_platform"]
branch = true