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
9 lines
331 B
Docker
9 lines
331 B
Docker
# pg_orrery + pgvector: celestial mechanics + vector search in one database
|
|
FROM git.supported.systems/warehack.ing/pg_orrery:pg17
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
postgresql-17-pgvector \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY docker/030_install_extensions.sh /docker-entrypoint-initdb.d/
|