unsloth/studio/frontend/src/features
Roland Tannous 08cee7cc0a Studio: bounded parallel RAG indexing + folder upload
Uploading many docs (or a folder) previously spawned an ingestion
subprocess per file all at once, thrashing the GPU/CPU. Add a
configurable concurrency limit and a folder picker.

- ragIndexConcurrency setting (default 1) in the chat runtime store,
  persisted like the other RAG scalar settings; exposed as a 'Parallel
  indexing' slider (1-8) at the bottom of the sidebar Retrieval section.
- New rag-index-queue.ts semaphore: each document upload acquires a slot
  before it starts and releases it once its ingestion job finishes
  (complete / error / already-indexed), so bulk uploads drain at the
  configured rate. Wired into both composer upload paths
  (use-thread-doc-uploads + shared-composer).
- Folder upload: a second 'Attach a folder' button on the RAG attach
  control uses a webkitdirectory input; every compatible file is routed
  through the same queue. Multi-file select already worked (the input has
  'multiple' and loops addDoc).
- Content-hash dedup (shipped earlier) means re-scanning a folder skips
  already-indexed files.

Not build/UI verified here (no bun); needs bun typecheck + a browser
check of bulk/folder upload draining at the set concurrency.
2026-05-28 19:52:49 +04:00
..
auth ci: unblock Studio Windows + Linux + Mac smoke (#5741) 2026-05-23 06:59:16 -07:00
chat Studio: bounded parallel RAG indexing + folder upload 2026-05-28 19:52:49 +04:00
data-recipes Fix Studio desktop tray installer and titlebar and bux fixes (#5179) 2026-04-30 08:40:39 -07:00
export studio/frontend: wire logout, singleflight refresh, shared 422 helper, current-password input (#5490) 2026-05-18 00:03:03 -07:00
native-intents studio/frontend: make toast and inline error text selectable and copyable (#5506) 2026-05-18 03:47:21 -07:00
onboarding studio/frontend: fix onboarding CSP violations (#5658) 2026-05-22 05:02:19 -07:00
profile Studio: add frontend i18n support (#5765) 2026-05-27 04:52:16 -07:00
rag Studio: RAG for external model providers via prefetch 2026-05-28 17:18:08 +04:00
recipe-studio Recipe Studio local model selector (#5769) 2026-05-26 02:37:24 -07:00
settings Merge remote-tracking branch 'origin/main' into feature/rag 2026-05-28 00:38:58 +03:00
studio Studio: expose image size setting in training UI (#5743) 2026-05-27 05:01:24 -07:00
tour studio/frontend: fix onboarding CSP violations (#5658) 2026-05-22 05:02:19 -07:00
training Studio: expose image size setting in training UI (#5743) 2026-05-27 05:01:24 -07:00