Files
shre-embed/package.json
T
Claude a707c05dcc Scaffold shre-embed: embedding + semantic search with three-valued health
Express (ESM, no build step) service wrapping Ollama embeddings and Qdrant:
- POST /v1/embed, /v1/index, /v1/search
- GET /health reports each dependency as ok | absent | unobservable with the
  exact measurement_surface URL and observed_at; overall ok only when all
  deps are ok, 503 degraded otherwise
- upstream failures on /v1/* return 502 marked unobservable — never an empty
  result set or indexed:0
- defaults PORT=5499, QDRANT_URL=127.0.0.1:6333, OLLAMA_URL=127.0.0.1:11436
  (11436 native Ollama; 11434 is the broken Colima forward on this Mac)
- node:test unit tests with injected fetch; run with zero live dependencies
- README documents endpoints and a reference launchd plist (not installed)

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 02:05:11 -04:00

18 lines
368 B
JSON

{
"name": "shre-embed",
"version": "0.1.0",
"description": "Shared embedding + semantic search service for the estate (Qdrant + local Ollama)",
"type": "module",
"main": "src/server.js",
"scripts": {
"start": "node src/server.js",
"test": "node --test"
},
"engines": {
"node": ">=20"
},
"dependencies": {
"express": "^4.21.2"
}
}