Spaces:
Paused
Paused
Commit History
-
NINA v0.91 — 5-part retrieval + accuracy upgrade
Malina +1: Claude Sonnet 4.61. MaxSim retrieval (utils.py, retrieval.py) Store per-segment embeddings in each chunk (seg_embs). Bi-encoder scores via max cosine over segments instead of dot against the averaged embedding — a multi-topic chunk now surfaces if any single segment matches the query. 2. Adaptive chunking threshold (retrieval.py) Compute mean/std of consecutive segment similarities before the split loop. threshold = clip(mean − 0.5·std, 0.30, 0.62) — calibrates to each video's content dynamics rather than using the fixed 0.45 constant. 3. Segment-level cross-encoder scoring (retrieval.py) For chunks >120 words, score each segment individually against the query and take the max logit. Prevents silent truncation at the 512-token limit from hiding relevant content in the second half of long chunks. 4. Confidence-gated synthesis context (synthesis.py) Split regions into strong (conf ≥ 0.45) and context (below) before sending to the LLM. Context blocks are labelled separa…8aa6bb8 -
v0.90
Malina55eb376
-
NINA v0.81 — modular refactor + usage-token gate + 8-vCPU queue
Malina +1: Claude Opus 4.7- Split monolith into app.py + pipeline/audio/auth/cache/config/models/retrieval/ synthesis/utils/visual modules. - auth.verify_usage_token: HMAC (NINA_SIGNING_SECRET) + expiry + single-use; pipeline.run() refuses without a valid Worker-issued token (per-account 10/5h limit enforced server-side; the public Space can't be used directly). - run() takes a 3rd `token` input; Interface queue tuned for ~8 vCPU (concurrency 3, max 40); uploaded-media purge kept (delete_cache 5 min). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>05f095d