local-ai-platform/package.json
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

28 lines
659 B
JSON

{
"name": "local-ai-platform",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "tsx --test src/**/*.test.ts",
"dev": "node --env-file=.env --import tsx/esm --watch src/server.ts",
"build": "tsc -p tsconfig.json",
"start": "node --env-file=.env dist/server.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {
"fastify": "^5.12.7",
"node-pg-migrate": "^9.0.0",
"pg": "^8.23.1",
"zod": "^4.6.7"
},
"devDependencies": {
"@types/node": "^26.6.5",
"@types/pg": "^8.23.1",
"tsx": "^4.23.15",
"typescript": "^7.0.2"
}
}