Spaces:
Sleeping
Sleeping
Commit History
-
v0.2.0: hardening pass — cache, rate limit, structured logs, link UX
Make the POC safe to expose publicly before deploy. No new user features; everything is reliability, cost protection, observability, and link polish. - Migrated Gemini provider to google-genai SDK (drops FutureWarning) - Added in-memory TTL cache on /chat (5 min, 200 entries) — 100x speedup on repeat questions, zero LLM tokens - Added per-IP rate limit via slowapi (default 20/min, configurable) - CORS now driven by CORS_ORIGINS env var - /health upgraded to per-component status (lancedb, embedder, llm, cache) - Structured JSON logging with per-request UUIDs and latency_ms - One retry with 200–600ms jitter on transient LLM 5xx before fallback - PDF citations now get #page=N anchors so they deep-link - Inline [1][2] markers became clickable, scroll-to-source pills - Dropped unused sentence-transformers dep (saves ~2 GB from Docker image) Eval still 15/15. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>a19bf9a