Search stack replicates the Hamilton site pattern with pg_orrery-specific additions: - FastAPI REST API (chat SSE streaming, semantic search, health check) - FastMCP server at /mcp with doc search and live SQL query tools - pgvector + pgai vectorizer for 1024-dim document embeddings - Hybrid search (semantic cosine + text ILIKE with pg_trgm GIN) - Dual LLM backend: self-hosted qwen3 via GPU gateway or Anthropic Claude - Live read-only pg_orrery SQL execution with safety guardrails (SELECT-only validation, read-only transaction, 5s timeout, 100-row cap) - Convenience MCP tools: planet_position, sky_survey, satellite_pass - MDX content ingestion from docs/src/content/docs/ (50 pages) - Docker Compose: pg_orrery+pgvector DB, pgai, vectorizer-worker, API - Alembic async migrations, Makefile, .env.example
51 lines
1.1 KiB
TOML
51 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "orrery-search"
|
|
version = "2026.03.01"
|
|
description = "Semantic search and chat API for the pg_orrery documentation"
|
|
license = "MIT"
|
|
requires-python = ">=3.12"
|
|
authors = [{name = "Ryan Malloy", email = "ryan@supported.systems"}]
|
|
dependencies = [
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.32.0",
|
|
"sqlalchemy[asyncio]>=2.0.36",
|
|
"asyncpg>=0.30.0",
|
|
"pgvector>=0.4.2",
|
|
"pgai[sqlalchemy]>=0.12.0",
|
|
"tiktoken>=0.7.0",
|
|
"alembic>=1.14.0",
|
|
"pydantic-settings>=2.6.0",
|
|
"openai>=1.60.0",
|
|
"anthropic>=0.40.0",
|
|
"pyyaml>=6.0",
|
|
"fastmcp>=3.0.0",
|
|
"httpx>=0.28.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
orrery-search = "orrery_search.main:run"
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
src = ["src"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
ignore = ["B008"]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/orrery_search"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.0.2",
|
|
"pytest-asyncio>=1.3.0",
|
|
]
|