Spaces:
Sleeping
Sleeping
Commit History
-
feat(voice): full-duplex Live conversation mode with VAD barge-in (D-025)β
User can now speak ANY time β including while the bot is mid-sentence β and the bot stops speaking immediately and listens. No button press. New file: frontend/src/lib/useLiveConversation.ts - Continuous getUserMedia stream (echo cancellation, noise suppression, auto gain control all enabled). - AudioContext + AnalyserNode RMS-based VAD on a requestAnimationFrame loop. Thresholds: 28/255 byte FFT magnitude floor, 5 frames (~80ms) of loudness to confirm speech, 40 frames (~640ms) of silence to end. - On speech-start: pause every <audio> element (kills bot TTS mid- sentence), abort the in-flight /api/chat fetch via AbortController, start a MediaRecorder. - On utterance-end: stop recorder, call onUtterance(blob, abort). - Caller-managed inflightAbortRef so the page can register fetches that VAD should cancel on barge-in. api.ts: postChat() and postTranscribe() now accept an optional AbortSignal so the live-mode handler can plumb the VAD abort signal endβ¦d31e132 -
feat: view-aware copilot + persistent chat (D-020)β
Rohit Sar +1: Claude Opus 4.7 (1M context)Frontend was already wired to send view_context but backend silently dropped it (Pydantic ignores unknown keys). End-to-end plumbing now reaches the LLM: ChatRequest.view_context (backend/main.py) β handle_turn(view_context=...) (orchestrator.py) β build_messages(view_context=...) (persona.py) β system prompt injection ("USER IS CURRENTLY LOOKING AT: ...") Bot can now resolve "this policy", "these filters", "this insurer" against the active view (chat / marketplace / profile / premium / policy_detail) + active_policy_id + filters β without asking the user to re-state context. Also persists chat history + sessionId to localStorage so the conversation survives view changes, page reloads, and tab switches. Unit-tested all 4 layers: ChatRequest accepts the field, handle_turn signature includes view_context, build_messages backwards-compat when None, and system prompt contains the expected 'USER IS CURRENTLY LOOKING AT' block when set. Co-Authored-By: Claude Opusβ¦271442b
-
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 signature881b2f5 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature54e6ba9 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signatured1c5011 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature91489ec -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signatured2e3503
-
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature7863797 -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signatured430ddf -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signaturea21896f -
Deploy v1 β single-Docker FastAPI + Next.js + RAG + voice + faithfulness
Verified signature5dbdf6e