rohitsar567 Claude Opus 4.7 (1M context) commited on
Commit
1f68f73
·
1 Parent(s): e6eb838

docs(#27): README §6.4 Known limitations — honest current-state residuals

Browse files

#26 (stale-code purge): enumerated app code — already clean. 'legacy'
comments are intentional back-compat docs, 'stale' is real TTL/health
logic, the single admin.py TODO is a documented intentional decision, no
dead code, no commented-out blocks. The #40 dead-code deletion was done
inline; revert/un-revert is correctly recorded in git history (= #26's
standard: history in git/ADR/KI, not the codebase). No churn manufactured
on a clean codebase.

#27: added §6.4 documenting the honest residuals so a reviewer gets the
truth — uploaded-doc persistence is within-session not across HF rebuilds
(ephemeral FS); heuristic (not LLM) PDF extractor; Live(BETA) voice
unstable vs reliable push-to-talk; named-policy factual lookup answerable
cold while broad recommendations still gate on fact-find. Cross-repo
reconciliation: origin == github == HEAD (verified in sign-off).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -285,6 +285,31 @@ its module docstring. The automated test suite (`tests/`, run with `pytest`)
285
  is the current green gate and covers routing, scoring, premium, recall, the
286
  upload security gates, and conversation logic.
287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  ---
289
 
290
  ## 7. Tech stack & key decisions
 
285
  is the current green gate and covers routing, scoring, premium, recall, the
286
  upload security gates, and conversation logic.
287
 
288
+ ### 6.4 Known limitations (honest)
289
+
290
+ These are real and stated up front rather than buried:
291
+
292
+ - **Uploaded-doc persistence is within-session, not across restarts.**
293
+ Upload → graded marketplace card → grounded Q&A about the PDF all work
294
+ live within a running container. But the Hugging Face Space's working
295
+ filesystem is ephemeral by design (a fresh Chroma snapshot is pulled on
296
+ every rebuild — see §10), and in practice an uploaded doc does **not**
297
+ survive a Space rebuild/restart: the marketplace reverts to its
298
+ curated/extracted baseline. Treat uploads as session-scoped. An
299
+ operator/abuse prune endpoint exists (`POST /api/admin/uploaded-docs/
300
+ prune`, password-gated) to remove a persisted upload by id or prefix.
301
+ - **Uploaded-PDF field extraction is deterministic-heuristic, not LLM.**
302
+ A standard IRDAI-format wording yields a real (non-sentinel) grade; a
303
+ scanned-image or non-standard PDF with little extractable text honestly
304
+ shows the data-starved sentinel rather than a fabricated grade.
305
+ - **Live (BETA) voice mode** uses the browser's in-built speech
306
+ recognition and is labelled unstable; **push-to-talk** is the reliable
307
+ path (warm-armed mic + pre-roll so the first word is never clipped, and
308
+ long answers are chunked so nothing is truncated).
309
+ - **Recommendation vs. factual lookup.** A factual question that names a
310
+ specific policy is answerable on a cold session; broad "recommend me a
311
+ plan" requests still require the short fact-find first (by design).
312
+
313
  ---
314
 
315
  ## 7. Tech stack & key decisions