File size: 3,244 Bytes
dc1b199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f0cfb
 
 
 
32c4506
49f0cfb
 
 
9cc9c46
 
 
2f8eb23
dc1b199
2f8eb23
 
 
49f0cfb
dc1b199
732b14f
 
 
49f0cfb
7d37f11
dc1b199
 
 
 
 
 
 
 
aad7814
 
732b14f
 
 
 
 
dc1b199
 
 
732b14f
 
 
dc1b199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faa8fb3
 
dc1b199
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "report-genius-ai"
version = "0.1.0"
description = "RICS-style Retrieval-Augmented Generation system for property survey reports"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
dependencies = [
    # Web framework
    "fastapi>=0.111.0",
    "uvicorn[standard]>=0.29.0",
    "python-multipart>=0.0.9",
    # ── LangChain framework & integrations ───────────────────────────────────
    "langchain>=0.3.0",
    "langchain-core>=0.3.0",
    "langchain-openai>=0.2.0",          # ChatOpenAI + OpenAIEmbeddings via LCEL
    "langchain-community>=0.3.0",       # Document loaders, FAISS vectorstore
    "langchain-huggingface>=0.1.0",     # HuggingFaceEmbeddings (local, free)
    "langchain-text-splitters>=0.3.0",  # RecursiveCharacterTextSplitter
    # Document loading back-ends used by LangChain community loaders
    "python-docx>=1.1.0",  # provides `docx` module used by docx_builder + export API
    "docx2txt>=0.8",        # required by Docx2txtLoader
    "pymupdf>=1.24.0",      # required by PyMuPDFLoader
    "pypdf>=4.0.0",         # used directly in /extract-notes for PDF text extraction
    "faiss-cpu>=1.8.0",
    # OpenAI SDK β€” used directly by inspector_loop.py (tool-calling loop)
    # langchain-openai depends on it but listing explicitly pins the runtime dep.
    "openai>=1.30.0",
    # Kept for tiktoken-based token counting in prompt builder
    "tiktoken>=0.7.0",
    # ── LLM throttling / logging helpers ─────────────────────────────────────
    "tenacity>=8.5.0",
    "structlog>=24.1.0",
    # Local embedding model weights (used via langchain-huggingface)
    "sentence-transformers>=3.0.0",
    # Data & persistence
    "pydantic>=2.7.0",
    "pydantic-settings>=2.3.0",
    "sqlalchemy>=2.0.30",
    "aiosqlite>=0.20.0",
    # Utilities
    "numpy>=1.26.0",
    "python-dateutil>=2.9.0",
    # Deterministic redaction: exact-string PII wipe (zero-AI, zero-network)
    "flashtext>=2.7",
    # Phase-1 retrieval (optional Qdrant + hybrid BM25)
    "qdrant-client>=1.9.0",
    "rank-bm25>=0.2.2",
    # Phase 3 β€” Redis rate limits + job queue (optional at runtime if redis_url unset)
    "redis>=5.0.0",
]

[project.optional-dependencies]
temporal = [
    "temporalio>=1.7.0",
]
dev = [
    "pytest>=8.2.0",
    "pytest-asyncio>=0.23.0",
    "httpx>=0.27.0",
    "pytest-cov>=5.0.0",
    "black>=24.4.0",
    "ruff>=0.4.0",
    "mypy>=1.10.0",
]

[tool.black]
line-length = 88
target-version = ["py311"]

[tool.ruff]
line-length = 88
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B"]
ignore = ["E501", "B008"]

[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
# Tests use pytest fixtures and mocks; strict typing them adds little value.
exclude = ["^app/tests/"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["app/tests"]
addopts = "--cov=app --cov-report=term-missing -q"

[tool.hatch.build.targets.wheel]
packages = ["app"]