project-nomad/admin/app
chriscrosstalk 68c0a37cab
fix(RAG): anchor continuation-batch initial progress to overall-file frame (#889)
Each continuation batch of a multi-batch ZIM embed runs as a fresh
BullMQ job, so handle() ran the hardcoded `safeUpdateProgress(job, 5)`
even when the file was already 100k articles into a 600k-article ZIM.
The UI gauge briefly dropped to 5% before the per-batch onProgress
callback caught up to the true overall percentage, reading as a
backward jump every time a new batch started.

Compute initialPercent from batchOffset / totalArticles when available,
falling back to 5 for single-batch files (uploaded PDFs, txts) where
totalArticles isn't set. Capped at 99 to leave headroom for the 100%
final-batch marker.

Follow-up to PR #880 (which fixed the 0-100% scaling during a batch
but still had the initial-frame regression).
2026-05-15 23:01:45 -07:00
..
controllers fix(KB): add re-embed and reset & rebuild opts to fix broken embeddings (#886) 2026-05-15 22:05:19 -07:00
exceptions fix(Docs): documentation renderer fixes 2025-12-23 16:00:33 -08:00
jobs fix(RAG): anchor continuation-batch initial progress to overall-file frame (#889) 2026-05-15 23:01:45 -07:00
middleware fix(API): skip compression for Server-Sent Events (#798) 2026-04-27 19:00:31 -07:00
models feat(KB): per-file ingest state machine (Phase 1 of RFC #883) (#888) 2026-05-15 22:51:06 -07:00
services feat(KB): per-file ingest state machine (Phase 1 of RFC #883) (#888) 2026-05-15 22:51:06 -07:00
utils feat(KB): per-file ingest state machine (Phase 1 of RFC #883) (#888) 2026-05-15 22:51:06 -07:00
validators feat(Content): custom ZIM library sources with pre-seeded mirrors (#593) 2026-05-04 11:30:59 -07:00