Implement a standalone Python package for processing customer reviews through a 4-stage pipeline using URT (Universal Review Taxonomy) v5.1: - Stage 1: Normalization (text cleaning, language detection, deduplication) - Stage 2: LLM Classification (OpenAI/Anthropic span extraction with URT codes) - Stage 3: Issue Routing (deterministic issue ID generation, span linking) - Stage 4: Fact Aggregation (time series metrics for dashboards) Package includes: - TypedDict contracts matching Pipeline-Contracts-v1.md - Async database layer with asyncpg and 5 SQL migrations - LLM client abstraction supporting both OpenAI and Anthropic - Sentence-transformers integration for embeddings - Validation rules V1.x through V4.x - CLI commands: migrate, run, validate, check - 55 unit and integration tests (all passing) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
76 lines
1.7 KiB
TOML
76 lines
1.7 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "reviewiq-pipeline"
|
|
version = "0.1.0"
|
|
description = "ReviewIQ Pipeline - LLM-powered review classification and analysis"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
requires-python = ">=3.11"
|
|
authors = [
|
|
{ name = "ReviewIQ Team" }
|
|
]
|
|
keywords = ["reviews", "nlp", "classification", "llm", "pipeline"]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
]
|
|
|
|
dependencies = [
|
|
"asyncpg>=0.28.0",
|
|
"pydantic>=2.0",
|
|
"pydantic-settings>=2.0",
|
|
"langdetect>=1.0.9",
|
|
"sentence-transformers>=2.2.0",
|
|
"openai>=1.0.0",
|
|
"anthropic>=0.18.0",
|
|
"click>=8.0.0",
|
|
"python-dotenv>=1.0.0",
|
|
"aiofiles>=23.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"pytest-cov>=4.0",
|
|
"ruff>=0.1.0",
|
|
"mypy>=1.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
reviewiq-pipeline = "reviewiq_pipeline.cli:main"
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/reviewiq/reviewiq-pipeline"
|
|
Documentation = "https://github.com/reviewiq/reviewiq-pipeline#readme"
|
|
Repository = "https://github.com/reviewiq/reviewiq-pipeline"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/reviewiq_pipeline"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W", "UP"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = true
|
|
warn_return_any = true
|
|
warn_unused_ignores = true
|