Spaces:
Sleeping
Sleeping
Commit History
-
relevance + diversity evals, batched scoring, math tooltips
Adds two new eval metrics (relevance via BGE cosine, candidate diversity via mean pairwise cosine distance) plus per-candidate scoring so we can ask "did the picker beat candidate 0?" offline. compute_evals batches the scoring path: one NLI model.predict over all (candidate × sentence × chunk) pairs and one BGE embed_texts over [query, c1, c2, c3] feeding both relevance and diversity. EvalPanel surfaces the new pills with custom CSS hover tooltips that show the actual math from each turn (e.g. "2/2 sentences had NLI entailment ≥ 0.50") rather than generic definitions. aggregate.py grows a report_picker section that joins turns + picks + evals and prints pick rate, regenerate rate, strategy win rate, and the diversity floor.69345ca
-
sensing calibration + ink via ollama
- 5s per-user calibration window seeds blendshape, gaze, and head-pose baselines; detection now fires on σ-deviation from neutral instead of hardcoded thresholds. Recalibrate button on the sensing panel. - Time-based debounce, single-pass head history pruning, change-detection guard on per-frame setSensing to skip no-op re-renders. - Drop dead AirWriter.getText, redundant gaze condition, banner comments, duplicate HeadDebug/HeadSignal types. - Route /ink/recognize through ollama cloud (gemma4:31b-cloud) instead of Gemini direct; strip Qwen-specific /no_think prompt. - Remove orphaned mia_chen_synthetic persona (never registered in users.json). - Fix pre-existing F821/F841 in chat_turnaround/regenerate (eval_scores).fe675d0
-
air-writing
8539a00
-
-
fa02816
-
refactored and added synthetic data
0b52313
-
Add voice + air-writing conflict resolution
Push-to-talk Web Speech mic (gated to verbal-access personas) plus a Jaccard + AAC-priority-token resolver. The resulting {text, source, voice_text, air_text} drives a supplemental sub-intent and source-aware planner copy across five branches. Voice/air text is sanitised before LLM interpolation to close a prompt-injection vector. Also refreshes CLAUDE.md's persona table to match data/users.json.535a98d -
Stop blocking /chat on evals; let the UI poll for them
c09a7e7 -
Streaming candidate picker + side-index feedback loops
- Planner fans out 3 candidates with distinct grounding strategies (broad/focused/serendipitous for memory; good/fine/rough for present-state). Streams tokens via SSE through /chat/stream and /chat/regenerate/stream. - Picker UI: stackable cards per candidate, "try again" regenerates with prior options marked rejected. Head-shake during open picker triggers regenerate; post-pick still triggers turnaround. - Side-index at data/pick_index/<uid>/ stores (query → picked text + buckets). Feeds back into generation as a prior_pick retrieved chunk and blends into bucket_priors at weight 0.3 (transient). - Concurrency: RLock on pick_index cache, Lock on planner completed[]. rAF-batched token rendering. SSE reader drains trailing buffer. Empty-candidate fallback surfaces actionable text + logs.df78c68
-
Session priors (P(bucket) + P(type)) + inline eval UI
- Replace single-bucket hard filter with two parallel Bayesian priors: P(bucket) over family/medical/hobbies/daily_routine/social, P(type) over narrative/social_post/chat_log. Axis-generic core in priors.py; bucket_priors.py is gone. - retrieve() soft-weights candidates by 0.3·log P(bucket) + 0.2·log P(type) before MMR. Uniform priors are a ranking no-op. - Priors update from all retrieved personal chunks (not top-1) with 15% per-turn decay toward uniform, so distributions track the current topic instead of whole-session history. Guardrail-blocked turns skip updates. Gaze still hard-filters. - Move eval scoring from BackgroundTasks to synchronous on the /chat response path; eval_scores returned inline so the UI renders grounded/affect/gesture/gaze pills on every AAC bubble. - Small: favicon SVG beside the sidebar title. README updates + docs/images/eval-pills.png screenshot.690c106 -
Add faithfulness + authenticity evals; run scoring off the response path
NLI-based groundedness (cross-encoder/nli-deberta-v3-small) and per-turn Likert capture via /feedback/rating. compute_evals runs in BackgroundTasks → logs/evals.jsonl keyed by run_id. New aggregate.py prints per-persona latency/faithfulness/alignment/rating rollups.ed5dd6f -
Add PRESENT_STATE intent + head-shake turnaround
Right-now questions ("how are you feeling?") were fabricating answers from autobiographical memory. PRESENT_STATE is a new intent class that skips retrieval and uses an affect-grounded prompt branch, falling back to "I'm not sure" when the read is ambiguous. Head-shake or sharp head-nod (or the manual "Not quite right" button) hits a /chat/turnaround endpoint that re-plans the last turn: - PERSONAL turns re-retrieve excluding the rejected bucket and exact chunk texts, with a score floor so the rephrase doesn't degrade into off-topic memories - PRESENT_STATE turns flip the emotional read or admit uncertainty Head-pose detection is client-side (MediaPipe nose-tip), with a calibrate button and live Δx/Δy debug readout. Both bubbles stay visible after turnaround — rejected gets strikethrough + "rephrased" badge, new one gets "↻ turnaround".ce51e88 -
added deeper memories and new users.
09fe9bc -
dropped more bloat
084a2f9
-
Remove library bloat
5187368 -
Added scaffolding for evals
9ad188a
-
Code refactor for extensibility
375924d