Commit Graph

8 Commits

Author SHA1 Message Date
Serendipity 441ba8ab86 test: add DELETE endpoint tests and ingest integration tests 2026-07-05 01:46:59 +08:00
Serendipity 4114a168b4 refactor: FastAPI Depends injection replacing globals, real health check, logging config 2026-07-05 01:46:59 +08:00
Serendipity 10eda446ea fix: add field validation to API request models (top_k limit, file_name pattern) 2026-07-05 01:46:58 +08:00
Serendipity 157155c0d2 fix: add API key auth, rate limiting, and safe error messages 2026-07-05 01:46:58 +08:00
Serendipity 2ef0cf4a4e fix: add path traversal protection to ingest endpoint 2026-07-05 01:46:58 +08:00
Serendipity 5dcf1eed52 fix: remove api_key from config.yaml, read from EMBED_API_KEY env var; unify config path constant 2026-07-05 01:46:58 +08:00
Serendipity 2f0aa38fbf fix: add root redirect to /docs and show localhost in serve output 2026-07-05 01:46:58 +08:00
Serendipity d021390fd3 feat: add FastAPI HTTP API layer
- Implement FastAPI server with health, collections, ingest, search, and delete endpoints
- Add Pydantic request models for ingest and search
- Add lazy singleton initialization for DB, embedder, and services
- Support environment variable override for data dir and collection name
- Add integration tests with TestClient and temp directory
- Set TRANSFORMERS_OFFLINE/HF_HUB_OFFLINE for offline model loading in tests
2026-07-05 01:46:44 +08:00