Spaces:
Sleeping
Sleeping
Commit History
-
docs(plan): error/risk audit framework implementation planβ
7 tasks, TDD, ~25 checks across 5 tiers + self-verifying selftest. Local commit only β not pushed (no redeploy). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>8bccaf2 -
docs(spec): error/risk audit framework design (awaiting review)β
5-tier exhaustive audit + functionality test framework, grounded in this session's failure cascade + standing silent-failure risks. Tier 4 = both fast-smoke and exhaustive E2E. Local commit only β not pushed (no redeploy). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>22e3bdb
-
refactor: KI-047 β bucket reorg (Option A safe subset)β
User picked numbered-bucket layout. Executing the SAFE subset that does NOT touch Python imports or string path refs: β’ docs/ β 70-docs/ β’ audit_results/ β 80-audit/ Kept as-is (renaming would need ~25 Python files of string-path updates β deferred to follow-up): β’ data/ β code-referenced (backend/{premium_calculator, session_state, profile_store, scorecard, admin, llm_health, main}, rag/build_kb, tools/{check_link_rot, info_source_map, curate_*, refresh_premiums, generate_policy_facts}). β’ backend/, frontend/, rag/, tools/, eval/, tests/, kb/ β Python directly forbids leading-digit / hyphen package names. All references to the moved folders updated in one sed pass across *.md, *.py, *.sh, *.ts, *.tsx, *.json, Dockerfile. Verified by: β’ tests/test_routing_regression.py β 15/15 still pass. β’ No residual (docs/ or [docs/ or /docs/ or ^docs/ refs. β’ Same for audit_results/. Docβ¦e2d09f9 -
docs: full sweep β fix stale model names + 48β62 fields + merge SUBMISSIONβ
User flagged stale references throughout the docs. Per the pattern- extrapolate prime directive, enumerated every instance before fixing. Stale-reference fixes: β’ "48-field" / "48 fields" / "24 of 48 fields" β 62-field everywhere. Verified ground truth: HealthPolicy in rag/schema.py has 62 fields (PolicySchema model). The "48-field" claim was a relic from an older version of the schema and never got updated across docs. β’ "NIM V4-Pro" β "the fast-brain chain (Nemotron 30B / Qwen 80B fallback)" β’ "NIM DeepSeek-V4-Pro" β "the brain chain (Qwen 80B primary, 50/50 with Groq Llama-3.3)" β’ "DeepSeek-V4-Flash" β "Nemotron Nano 30B (current fast-brain primary)" β’ "NIM Llama-4 Maverick" β "the judge chain (Mistral Large 3 675B primary)" β’ "Llama-4 Maverick" (as judge) β "Mistral Large 3 675B" β’ Model IDs (deepseek-ai/deepseek-v4-pro etc.) β current chain primary IDs β’ "285 structured extractions" β 203 (actual count of extracted JSONs) β’ "~12,000 vector chβ¦050823a -
docs: ADR-025 (single-Chroma-collection rationale) + KI-018/019 backlogβ
ADR-025 documents the architectural decision to keep one Chroma collection partitioned by doc_type metadata rather than splitting into 4 collections (policies, regulatory, reviews, profiles). Records the trade-off: joint retrieval simplicity wins over per-type independence, with explicit revisit triggers for when to split later. KI-018 β rag/policies.duckdb is a 132-byte empty stub from ADR-004's hybrid design that was never populated. Marketplace reads JSON directly instead. Options: (A) populate from data/policy_facts/*.json for SQL filtering, (B) remove dead code. Backlog. KI-019 β kb/policies/*.md (224 hand-written policy summaries) are NOT embedded. Retrieval would benefit from natural-language summary chunks for "what does X cover?" style questions. Backlog. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>a2ce565 -
feat(reviews): KI-017 β enriched per-facet review chunks (10 β 60)β
Was: 1 generic paragraph per insurer (β500 chars) β bad recall for review queries because the LLM had to disambiguate metrics from sentiment from news from inside one blob. Now: 4-6 semantically distinct chunks per insurer: - claim_metrics (IRDAI numbers) - aggregator_ratings (Policybazaar / InsuranceDekho / MouthShut / Trustpilot) - reddit_sentiment (themes + sample URLs) - youtube_coverage (creator + video links) - recent_news (one line per item) - overall_score (aggregate trust + letter grade) Each carries a `review_facet` metadata field so retrieve.py can filter or boost when intent is clear. Live counts (verified against rag/_hf_dataset_backup/rag/vectors): - 10 insurers Γ 6 facets = 60 review chunks total - was 10 chunks β 6Γ richer recall surface Also: backwards-compat shim β old `review_to_paragraph()` still works (returns concat of all facets) so any external caller doesn't break. After this commit, push to HF Dataset (`rohitsar567/insurance-bot-data`) viaβ¦85a34b0 -
docs: 2026-05-14 quality sprint scoreboardβ
Single-day sprint that closed 11 of 16 documented issues across three discovery channels: code review (6), 100-persona audit (2), real user testing (3). The remaining 3 P2 + 2 P3 items are tracked in known-issues.md backlog. Net before/after: - P0 open: 5 β 0 - P1 open: 5 β 0 - Audit framework: none β 100Γ30-turn simulation in production - Live deploy: 9 quality commits between dae8de8 β ffefacf Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>08a5304 -
fix(fact-find): KI-012/013/014 β flow corrections from user testingβ
KI-012 (P0) β Bot stuck in fact_find_complete readback loop After fact-find completed, the bot kept emitting the same readback summary instead of answering user's policy questions. Audit transcript showed P002 wasted 19 of 30 turns echoing the profile back. Fix: set session.free_form_session=True on completion + flush. KI-013 (P0) β Bot recommends senior-citizen policy to non-seniors Real user testing: vague opener β bot retrieved + pitched "Care Senior" (senior-only policy) without ANY fact-find. Intent classifier routed to recommendation, bypassing fact-find. Fix: orchestrator forces fact-find when profile is empty (no age, dependents, or income captured yet), regardless of intent. KI-014 (P1) β "family" auto-mapped to self+spouse+kids Real user testing: user said "family" β bot assumed self+spouse+kids. User actually meant parents + siblings (joint family). Fix: VAGUE_TERMS list in keyword normalizer returns None for unclear terms ("family", "everyone", "β¦f93292f -
fix(orchestrator): KI-012 critical β transition to free-form after fact-findβ
P002 transcript revealed: after fact-find completed at turn 11, the bot returned the SAME readback summary ("Got it β here's what I've understood: β¦") to all 19 subsequent free-form policy questions. User asked about claim settlement, room rent caps, comparisons β bot just echoed the profile readback every time. Root cause: on fact-find completion, the code only cleared `session.awaiting_question_id` but did NOT set `session.free_form_session = True`. Next turn classifier still routed through the fact-find branch, `next_question()` returned None, code hit the "complete" path again, emitted readback summary again. Loop. Fix is one line: set `session.free_form_session = True` + flush. Now subsequent turns skip the fact-find branch entirely and go through retrieval + brain as intended. Effect on the audit data: every persona's post-fact-find ~20 turns will now go through real RAG + brain instead of silently looping the readback. The 100-persona audit data will finally surface real poliβ¦75b229d -
fix(fact-find): keyword fast-path + re-ask cap (KI-011 critical)β
CRITICAL bug discovered via the 100-persona audit on the first persona: under audit concurrency, NIM rate-limit causes the Llama-3.3-70B normalizer LLM call to fail. Normalizer returns None. Orchestrator KEEPS awaiting_question_id set. Bot re-asks the SAME question. User answers something β but it's an answer to the NEXT question we never moved on to. Normalizer fails again. Bot re-asks again. Infinite loop. Concretely on persona P002 (verbose style): turn 7 user said "so basically, bangalore, let me know what you think" β location normalizer LLM call hit NIM rate limit β returned None β reask_clarify. Then turns 8-20+ all received reask_clarify response to "Which city?" while the persona moved on with answers to dependents/income/etc. Bot stayed stuck asking about city forever. Fix layered in two places: [A] backend/fact_find_normalizer.py β KEYWORD FAST PATH New `_keyword_normalize()` function tries deterministic substring matches BEFORE the LLM. Hand-curated patterns coveβ¦171f2a4 -
docs: reorganize into 8 buckets + 24 ADRs + master README (D-023)β
Replaces the legacy flat docs/ layout with a numbered bucket structure modeled on technical-repo conventions (e.g. Kubernetes docs/, IETF RFCs). Old monolithic decisions.md (32 KB) split into 24 individual ADRs using the Nygard template (Status / Context / Decision / Alternatives / Consequences / Revisit-at-scale). Structure: docs/00-overview/ β problem statement, roadmap docs/10-architecture/ β system, stack rationale, safety, scoring docs/20-data-pipeline/ β ingestion policy, information source map docs/30-engineering/ β needs-analysis flow, discovery script docs/40-evaluation/ β eval methodology docs/50-operations/ β (placeholder; runbooks land here) docs/60-decisions/ β 24 ADRs + index README + legacy archive docs/70-reference/ β (placeholder; glossary + indexes land here) All 14 existing docs moved via git mv (history preserved): 01-requirements.md β 00-overview/problem-statement.md 02-architecture.md β β¦dbacff2 -
Deploy: Stack A (NIM brain + Maverick judge + Sarvam voice). D-019.
Verified signaturecd72f85 -
Deploy: Stack A (NIM brain + Maverick judge + Sarvam voice). D-019.
Verified signature13779e8
-
Stack A: NIM brain + Maverick judge + Sarvam voice/Indic (D-019). Data moved to insurance-bot-data dataset; Space is now code-only.
Verified signaturec32bddc -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature54ae55a -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturef0adc52
-
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signatured430ddf -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature37611ae -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature5dbdf6e