Spaces:
Sleeping
Sleeping
Commit History
-
docs: Cluster A (count drift) + Cluster B (deleted-module refs) sweepβ
Cluster A β Align pre-ADR-044 count snapshots with current 148/21 state: - CLAUDE.md L7: "19 insurers / 166 cards / 4-gate faithfulness" β "21 insurer slugs / 148 catalogued cards / structural grounding" - README.md L61: "~150 plans across 20 insurers" β "~148 plans across 21 insurers" - rag/README.md L30: "19 insurers" β "21 insurer slugs; dedup to 148 marketplace cards" - 70-docs/80-audit/reviews-source-map.md Γ4: "20 insurers" β "21" - ADR-002 + ADR-009 + 60-decisions/README.md: kept historical scope numbers as ADR history-of-record; added forward-pointer footnotes to current 21/148 per ADR-044 Cluster B β Replace references to modules deleted in KI-225 single-brain consolidation: - kb/AUDIT_TRAIL.md: faithfulness.py / persona.py / fact_find_brain.py / sales_brain.py / qa_brain.py / translator.py / profile_extractor.py / orchestrator.py β single_brain.py - backend/providers/README.md L13: removed translator.py reference (sarvam_llm.py now used directly by β¦4c728a9 -
docs: stale-references sweep β align legacy docs with ADR-044 + 8-gate stateβ
11 files fixed per 2026-05-27 docs-audit (P0 / P1 / P2 / one P3): P0 β Upload pipeline most-likely-to-mislead: - 70-docs/20-data-pipeline/ingestion-policy.md: wholesale Β§"Exception β user uploads" rewrite; dual-write table row; date bumped + ADR-044 cross-ref - kb/security/INDEX.md: "5 gates" β "8 gates" with full table extension P1 β Status inversions: - 70-docs/60-decisions/ADR-003-curated-corpus.md: "Locked" banner now says "partially superseded by ADR-044"; counts 190/19 β 148/21; quarantine-only framing flipped to dual-write - 70-docs/60-decisions/README.md: ADR-003 status row updated - 70-docs/10-architecture/safety-architecture.md: F-13 "Not applicable β D-003" β "LIVE per ADR-044, mitigated by 8 gates" (resolved internal contradiction) - 70-docs/00-overview/problem-statement.md: Β§5.4 qualified as v1 intent + ADR-044 update; Β§7 non-goal bullet replaced with cross-session-retrieval caveat P2 β Architecture summaries omitted dual-write: - ARCHITECTURE.md: explicitβ¦21e4b2a
-
data+scoring: verbatim-source all policy_facts, recalibrate scorecard, fix recommendationβ
- Re-sourced ~2900 cells to verbatim PDF clauses (v1/v2/v3 fleets); 0 fabrication, 0 legacy-provenance, ~250 wrong values corrected; image-only Acko cells dropped. - Removed max_renewal_age from scoring (IRDAI lifelong is universal); root-caused 999. - Recalibrated 6 sub-scores + thresholds: real A/B/C/D/F spread (was ~90% B); fixed-benefit N/A reweight. - #9 citations = exactly the prose-named policies (no slice cap). - #10 eligibility gates (no top-up for first-timers, zero-copay, SI floor) + profile-fit rank. - Voice TTS silent-failure surfaced + codec fix; 14 dead source URLs replaced. - scorecard/compare/bulk now merge corrected policy_facts (divergence fix). - 62/62 tests; two-part verify: 4113 verbatim-verified, 66 documented residual, 0 fabrication. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>7081aaa
-
feat(llm+docs): KI-177 + KI-179 + KI-183 + ADR-040 docs cascadeβ
THREE-TIER LLM CHAIN β Google Gemini PRIMARY, NIM Tier 1, OR Tier 2. Live audit (KI-178) of OpenRouter's free-tier catalog killed my earlier recommendation: gemini-2.0-flash isn't in OR's catalog, llama-3.3-70b- :free and hermes-3-405b:free don't expose response_format. So OR's free-with-JSON pool is only nemotron-3-super-120b / qwen3-next-80b / gemma-4-31b. User obtained a Google AI Studio key, set up billing ($0 historical spend, $10 cap, free 1500/day quota active), confirmed working live on gemini-2.5-flash + gemini-2.5-flash-lite. NEW MODEL TIERS: Brain Fast (sales_brain): Tier 0 Google gemini-2.5-flash-lite (KI-183 β 2.0-flash retired) Tier 1 NIM qwen3-next-80b β mistral-large-3 β llama-4-maverick Tier 2 OR nemotron-3-super-120b:free β qwen3-next-80b:free β gemma-4-31b:free Last NIM nemotron-super-49b (only when all else dies) Brain Main (orchestrator): Tier 0 Google gemini-2.5-flash Tier 1+ same NIM/OR cascade Judgβ¦132a829 -
fix(voice+chat+llm+docs): KI-155 + KI-156 + KI-157 + KI-158 + KI-159 + KI-160 bundleβ
Six conversation-pipeline + LLM-chain fixes addressing every live-test defect surfaced today, plus the documentation cascade. KI-155 β enforce <FF> trailer emission. Strengthened fact_find_brain system prompt with absolute final-instruction block + edge-case few-shots ('Hi' β still emit trailer, 'ok' β still emit trailer) so Groq Llama-3.3 (was elected as cross-provider fallback, was silently dropping the trailer) now complies. Smoke: My name is Rohit / I am 29 years old / to buy a health insurance policy β all three return fact_find_brain:: continue, no more ::fallback:no_trailer. KI-156 β fix bot non-response + 'not having any policy' uncaptured. Three sub-fixes: Fix A: extend negation regex in fact_find_normalizer._parse_existing_cover to cover 'not having', 'not got', 'not have', 'without (any|a)'. Fix B: stop-list in fact_find_brain._validate_capture for name field β reject hallucinated names that start with 'currently', 'not', 'no', 'looking', etc. (live bug: LLβ¦1c5baae -
fix(corpus): KI-126 β drop 2 image-only PDFs + cascade docs across 3 reposβ
The 2 deleted PDFs are scanned-image PDFs that pdfplumber extracts as 0 chars, so they were never queryable through the RAG pipeline. OCR is explicitly out of scope. Removing them brings every surface back into agreement: β’ royal-sundaram/family-plus__brochure.pdf β Family Plus product is still covered via royal-sundaram__family-plus__wordings (text-extractable). β’ aditya-birla/activ-one__brochure.pdf β Activ One coverage is provided via aditya-birla__activ-health-individual__wordings (already in Chroma, 120 chunks). The separate aditya-birla__activ-one KB entry was independent and remains intact. Cascade across all surfaces (per the no-stale-content prime directive): β’ Deleted: 2 PDFs (HF dataset + local symlink target) β’ Deleted: 2 kb/policies/__brochure.md files β’ Deleted: 2 40-data/policy_facts/__brochure.json files β’ Deleted: 2 _hf_dataset_backup/rag/extracted/__brochure.json + 1 _raw.txt β’ kb/INDEX.md: rows removed; "Policies (255)" -> "Policies (2β¦f9adc25
-
docs: KI-071 β reconcile docs with code reality (Qwen 80B / Nemotron 30B / Mistral 675B as current primaries)β
Source-of-truth audit found the production code on `main` runs Qwen 3-Next 80B (brain primary) + Nemotron Nano 30B (fast brain primary) + Mistral Large 3 675B (judge primary) per the D-022 inline brain swap on 2026-05-14 (NIM DeepSeek + Llama-4 Maverick pools were timing out for hours). The ADR-019 decision text + multiple docs still referenced DeepSeek V4-Pro / V4-Flash + Llama-4 Maverick as primaries. This commit aligns 12 files with the actual chain definitions in `backend/providers/nvidia_nim_llm.py`. DeepSeek V4-Pro / V4-Flash + Llama-4 Maverick are correctly documented now as **fallback chain entries** that re-enter rotation when NIM's pools recover. Files reconciled (+64 / -45): - `README.md` β Β§1.2 "Honest model picks" paragraph + Β§4.3 Model stack table rewritten. Heavy brain row now: "Qwen 3-Next 80B *or* Groq Llama-3.3-70B (50/50 rotation)". Fast brain: "Nemotron Nano 30B". Judge: "Mistral Large 3 675B". Full fallback chains documented. - `70-docs/60-decisioβ¦2e60476 -
refactor + feat: KI-050b/053/054 β rename completeness + eval speed + tax questionsβ
Combines three logically-related changes into one push-clean commit (rewrites the prior 67bdd3a + 866fb24 to drop accidentally-swept-in binaries + runtime state that tripped HF Space's pre-receive hook). KI-050b β data/ β 40-data/ rename completeness across docs: β’ 40-data/ internal docs (README, corpus_urls.md, info_source_map, illustrative_premiums.json, llm_health.json, profiles/README, reviews/icici-lombard.json) β’ kb/ β AUDIT_TRAIL, INDEX, all 218 kb/policies/*.md mirror sheets, kb/research/corpus_acquisition.md, kb/reviews/* leaderboards β’ tools/ β info_source_map.py, build_kb_mirror.py, full_pipeline.sh, README, ~12 other scripts touching data/ paths in prose β’ eval/info_source_map.json (2772 source-provenance entries) + README entrypoint.sh preserved β its `/data/` paths are absolute HF Space persistent-disk mounts, NOT references to the repo folder. KI-053 β eval/run.py --no-extract flag. Skips the orchestrator's free-form profile_extractor LLM call β¦57ef382 -
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 -
chore: drop legacy kb/policies/ MDs + gitignore backup folderβ
- Remove 31 kb/policies/*.md files superseded by the chroma-vector retrieval path. The bot's RAG reads from rag/vectors/ (built from rag/extracted/ JSONs at ingest time), not these markdown summaries. - Remove kb/premiums/INDEX.md β empty stub from the premiums-tabulation pipeline iteration; data lives in data/premiums/illustrative_premiums.json. - Gitignore rag/_hf_dataset_backup/ β the local mirror of the HF Dataset. Keeps the 493 MB backup out of the code repo (also mirrored to the companion repo rohitsar567/insurance-sales-bot-data via Git LFS). No runtime / behavior change. Cleanup only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>06bab12 -
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 signature9c879c3 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturef0adc52
-
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturef0b6037