Commit graph

6 commits

Author SHA1 Message Date
Brandon Wolfgang
c2b47e7645 feat: complete Phase 3 retrieval-augmented generation pipeline
- Add document ingestion with text chunking, embedding generation, and PostgreSQL persistence
- Configure PostgreSQL with pgvector, document schemas, and database migrations
- Implement semantic search using Ollama embeddings and pgvector cosine similarity
- Add POST /documents, POST /search, and POST /ask endpoints with validation and sanitized error handling
- Generate context-grounded answers with source attribution
- Filter retrieved chunks using a minimum similarity threshold of 0.5 and return fallback responses when no relevant context is available
- Add unit and integration tests for ingestion, search, question answering, validation, and failure handling
- Update README with Phase 3 capabilities, setup instructions, and API documentation
2026-10-22 15:17:02 -05:00
Brandon Wolfgang
f5840d4ecc Merge branch 'feat/phase-2-local-inference' 2026-10-21 21:44:34 -05:00
Brandon Wolfgang
c70a16af15 feat: integrate local Ollama inference and update API documentation
- Add an Ollama client for Qwen3 8B generation with request timeouts and HTTP error handling
- Implement POST /generate with request validation and sanitized failure responses
- Update GET /ready to report Ollama availability and return HTTP 503 when unavailable
- Add unit and integration tests for generation, dependency health, and failure handling
- Document implemented API endpoints, setup instructions, scripts, and remaining planned capabilities in README
2026-10-21 21:43:46 -05:00
Brandon Wolfgang
1f354e8b5c Merge branch 'feat/phase-1-api-foundation' 2026-10-21 21:36:16 -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