Commit Graph

5 Commits

Author SHA1 Message Date
a309e64841 feat(admin): add admin backend endpoints and service layer
Why:
- Dashboard needs system health, Qdrant management, chunk preview, questions, and cost estimation endpoints

Changes:
- Add admin router with 11 endpoints (health, Qdrant CRUD, chunk preview, questions management, cost estimation)
- Add delete_experiment to SQLite storage
- Mount admin router and dashboard static files at /app

Impact:
- New /admin/* API routes available
- Dashboard served at /app/ via StaticFiles
2026-07-29 17:53:43 +03:30
4e76203e27 feat(api): add request logging middleware
Why:
- Need visibility into API usage and performance
- Need to track request method, path, status, and duration
- Helps debugging production issues

Changes:
- Added RequestLoggingMiddleware class
- Logs at appropriate level (INFO/WARNING/ERROR)
- Non-invasive, no logic changes
2026-07-27 14:15:19 +03:30
b18ecdcd0c feat(api): add logging configuration and mount routers
Why:
- Need structured logging for debugging query pipeline
- Need to mount benchmarking router

Changes:
- Added logging.basicConfig() with INFO level
- Mounted benchmarking router
- Registered QueryError exception handler
2026-07-26 12:06:25 +03:30
29edbf57c4 feat(api): wire documents router and SQLite init in app factory
Why:
- App factory needs to mount document routes and initialize SQLite at startup

Changes:
- Import and mount documents_router
- Call init_db() on app creation
2026-07-26 09:38:02 +03:30
4edc355ae5 feat(core): add core layer with config, clients, exceptions, models, and app factory 2026-07-21 18:51:57 +03:30