Commit graph

4 commits

Author SHA1 Message Date
Brandon Wolfgang
8038ff35fc feat: add document schema and embedding generation
- Create documents and document_chunks tables with status tracking, cascading deletes, and chunk uniqueness constraints
- Enable pgvector and store 768-dimensional document embeddings
- Add an initial source metadata migration placeholder
- Add node-pg-migrate for database migration management
- Implement Ollama embedding generation using nomic-embed-text with timeout and response validation
2026-10-22 09:45:35 -05:00
Brandon Wolfgang
faf3d8ce1d feat: add PostgreSQL with pgvector infrastructure
- Add Docker Compose configuration for PostgreSQL 17 with pgvector
- Configure database credentials through a required POSTGRES_PASSWORD environment variable
- Bind the database port to localhost and persist data in a named volume
- Add a database health check using pg_isready
- Add the pg client and TypeScript definitions
2026-10-21 22:20:10 -05:00
Brandon Wolfgang
66dc2b2065 feat: implement Phase 1 API foundation and testing
- Configure the Node.js test runner with tsx
- Add endpoint tests for health, readiness, and echo request validation
- Cover input length boundaries, invalid message types, unknown routes, and unexpected errors
- Extract the Fastify app factory to support isolated testing without starting the server
- Add centralized error handling and consistent 404 responses
- Guard server startup to prevent listeners from opening when the module is imported
2026-10-21 21:32:40 -05:00
Brandon Wolfgang
ed9259d35e Initialize local AI platform project 2026-10-21 16:57:52 -05:00