Spaces:
Sleeping
Sleeping
Commit History
-
fix(de-stale): eval/run.py --no-extract help no longer names deleted backend.profile_extractor/orchestrator (T2.3 finding)
4e551b8 -
chore(repo-hygiene): fix the 3 issues the audit framework's Tier-1 surfacedβ
- T1.2: LFS-track 40-data/information_source_map.json (2.9MB) + eval/info_source_map.json (1.6MB) β were plain blobs in the HF Space repo (1GB cap / pre-receive-hook risk). Content unchanged; now pointers. - T1.4: add slash-less `tools/.pdf_text_cache` to .gitignore (the trailing-slash file-vs-dir gap class that caused this session's symlink build break). - T1.5: untrack frontend/tsconfig.tsbuildinfo (regenerated build artifact) + gitignore *.tsbuildinfo. Local only β not pushed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>216a816
-
recovery: integrate stalled-session work + de-stale/cleanup (pytest 215 green) [build-fix]β
Resumes the session whose 3 background agents stalled on the 600s watchdog; captures the prior session's uncommitted #42β#110 work + data exercise plus this session's verified recovery changes. (Rebuilt from the first attempt to store frontend/public/insurer-logos/*.png via Git LFS β HF Spaces' pre-receive hook requires it; .gitattributes updated, tools/.pdf_text_cache gitignored.) Prior-session work captured (was uncommitted, behaviourally live-tested): - single_brain rewrite, full frontend rebuild, compare/scorecard/premium UI, ~77 40-data/policy_facts sourced-data edits, new tests/tools, render.yaml drop. This session's recovery (surgical, verified, behaviour-preserving): - Fix app-wide HTTP 500: a `*/` inside a CSS comment killed the stylesheet. - Remove dead get_judge_llm everywhere (judge retired in single-brain rewrite). - eval/run.py: repair imports + hard-guard against stale results.json. - Centralize ~13 hardcoded "40-data" literals to one settings.DATA_DIR (resolves idβ¦b87bd2d
-
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
-
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-050 β complete data/ β 40-data/ rename across all Python refsβ
The data/ β 40-data/ git mv landed in the previous commit (c8bf1a1) but the corresponding string-path updates in Python code did not β Python was still resolving _DATA_ROOT, _PROFILES_DIR, PREMIUM_DATA, HEALTH_FILE, etc. to the now-non-existent data/ path. The HF Space rebuild would have shipped a broken backend. This commit sweeps the 23 files that referenced data/ as a string path: β’ `"data/*` β `"40-data/*` β’ `/data/*` β `/40-data/*` β’ `(data/` β `(40-data/` β’ `Path("data" ...)` β `Path("40-data" ...)` β’ `ROOT / "data"` β `ROOT / "40-data"` Touched: backend/{session_state, profile_store, premium_calculator, llm_health, admin, main, scorecard, providers/nvidia_nim_llm}, rag/build_kb, tools/{check_link_rot, info_source_map, refresh_premiums, generate_policy_facts, curate_*, ingest_reviews, ingest_kb_summaries}, backend's per-folder docs, etc. Dockerfile: `COPY data ./data` β `COPY 40-data ./40-data` β container path mirrors host. Verified by: β’ Python smoke: _DATA_ROOβ¦52c6351 -
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 -
feat: KI-044 PCM pre-roll via AudioWorklet + 11 folder READMEsβ
KI-044 β Proper first-word capture in Live mode. Previous MediaRecorder approach started recording only AFTER VAD declared speech-start, missing the first 50-100 ms of the opening word. User report: "ensure that the first word uttered is also captured, especially in live." New approach (frontend/src/lib/useLiveConversation.ts): β’ Inline AudioWorkletProcessor (Blob-URL registered, no static asset routing) taps the raw PCM from the mic source. Every render quantum (128 samples) is posted to the main thread as Float32. β’ Main thread maintains a circular preroll buffer (~300 ms at the AudioContext sample rate) while no utterance is in progress. β’ When VAD fires speech-start: snapshot the preroll into the active utterance buffer; continue accumulating subsequent samples. β’ When VAD fires silence-end: encode utterance as 16-bit PCM WAV (Sarvam Saarika native format) and post to onUtterance. β’ Worklet stays running via source β workletNode β silentSink (zeroβ¦86fcc31 -
perf(eval): KI-024 β parallelize 96-Q gold eval with --workers semaphoreβ
Was fully serial: 96 questions Γ ~25s = 38 min total. Now defaults to 6 concurrent under a semaphore. Cap is upstream NIM (40 req/min, ~2 calls per question), so 6 workers gives ~5Γ speedup before saturating. Output order preserved via indexed result slots + a log lock for printing. Use --workers 1 to reproduce historical serial timing if needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1304e7c -
fix: KI-018..022 β routing, profile telemetry, NIM timeouts, judge JSON, chat clearβ
Five interlocking enterprise-readiness fixes plus a master audit report. KI-018 β orchestrator.py: stop force-routing QA intent to fact-find when the session profile is empty. The KI-013 guard was over-correcting: every QA question ("What's the waiting period for PED in Activ Assure?") was being answered with "Happy to help. First, your age?". Restrict the empty-profile guard to {recommendation, comparison} intents only. 5-Q post-fix smoke: factual accuracy 0% β 60%; nim-chain serving 100% of QA (was 0%). Full re-eval owed. KI-019 β orchestrator.py: populate TurnResult.profile_updates from the fact-find branch (previously only the free-form branch populated it). The 100-persona audit appeared to show age captured for only 12/100 personas when the slot-filler was actually working β confirmed by the fact_find_complete readback "42 years old; covering self+spouse+kids+ parents; income 25L+". This was a telemetry bug, not a slot-filler bug. KI-020 β main.py / session_state.py / frontendβ¦bcb7079 -
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 signatured1c5011 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturebd7ade9 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature9c879c3 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature91489ec -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturef0adc52
-
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturea21896f -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature3e6b7ee -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature5dbdf6e