unsloth/studio/frontend/src/components
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
..
assistant-ui Studio: bounded parallel RAG indexing + folder upload 2026-05-28 19:52:49 +04:00
layout Update license headers 2026-03-12 17:23:10 +00:00
markdown Update license headers 2026-03-12 17:23:10 +00:00
tauri Harden Tauri release flow (#5341) 2026-05-12 20:30:20 -07:00
ui Studio: anchor toasts to top-right, fix tight spacing in ingest stack 2026-05-27 17:56:28 +04:00
web Add Studio web update banner and release version display (#5308) 2026-05-11 18:24:01 +04:00
app-sidebar.tsx Studio: add frontend i18n support (#5765) 2026-05-27 04:52:16 -07:00
example.tsx Update license headers 2026-03-12 17:23:10 +00:00
navbar.tsx Studio: Improve chat composition, fix scroll behaviour, and refine sidebar UX (#5089) 2026-04-21 02:20:45 +04:00
section-card.tsx Update license headers 2026-03-12 17:23:10 +00:00
shutdown-dialog.tsx feat(studio): replace navbar with collapsible sidebar (#4936) 2026-04-16 08:46:16 -07:00