unsloth/studio/frontend/src/components/assistant-ui
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
..
model-selector studio/frontend: make toast and inline error text selectable and copyable (#5506) 2026-05-18 03:47:21 -07:00
attachment.tsx Studio: remove dark mode upload circle (#5813) 2026-05-27 10:46:49 -07:00
audio-player.tsx Update license headers 2026-03-12 17:23:10 +00:00
badge.tsx Fix tool call parsing, add tool outputs panel and UI improvements (#4416) 2026-03-18 08:28:02 -07:00
code-plugin.ts Studio: Improve chat composition, fix scroll behaviour, and refine sidebar UX (#5089) 2026-04-21 02:20:45 +04:00
code-themes.ts Studio: Improve chat composition, fix scroll behaviour, and refine sidebar UX (#5089) 2026-04-21 02:20:45 +04:00
code-toggle-icon.tsx Studio: Improve chat composition, fix scroll behaviour, and refine sidebar UX (#5089) 2026-04-21 02:20:45 +04:00
generated-image-overlay-context.tsx Support follow-up edits for generated images (#5712) 2026-05-26 02:34:06 -07:00
image.tsx Support follow-up edits for generated images (#5712) 2026-05-26 02:34:06 -07:00
markdown-text.tsx Studio: Dark theme refactor, right sidebar redesign, and chat UI polish (#5150) 2026-05-07 14:33:31 +04:00
message-timing.tsx Studio: surface external-provider cache hits and writes in context bar (#5736) 2026-05-25 23:37:04 -07:00
model-selector.tsx chore: unify connection copy (#5654) 2026-05-21 11:39:53 +04:00
reasoning.tsx studio/frontend: show "1 second" instead of "1 seconds" in thinking blocks (#5777) 2026-05-26 05:30:22 -07:00
sources.tsx Merge remote-tracking branch 'origin/main' into feature/rag 2026-05-28 00:38:58 +03:00
think-aria-label.ts studio/frontend: correct Think pill aria-label before model loads (#5655) 2026-05-22 05:02:15 -07:00
thread.tsx Studio: bounded parallel RAG indexing + folder upload 2026-05-28 19:52:49 +04:00
tool-fallback.tsx Studio: add remote MCP server support (#5750) 2026-05-27 07:01:11 -07:00
tool-group.tsx Studio: Improve chat composition, fix scroll behaviour, and refine sidebar UX (#5089) 2026-04-21 02:20:45 +04:00
tool-ui-code-execution.tsx Truncate long code execution tool output (#5708) 2026-05-22 07:45:58 -07:00
tool-ui-image-generation.tsx Improve image generation UI (#5784) 2026-05-26 04:17:43 -07:00
tool-ui-python.tsx fix: prefer mainstream clipboard copy over deprecated one (#5109) 2026-04-20 23:18:18 +04:00
tool-ui-search-knowledge-base.tsx Studio: WIP — RAG preview UI, locator/auth refactor, tests, fixtures (pre-merge snapshot) 2026-05-28 00:13:43 +03:00
tool-ui-terminal.tsx fix: prefer mainstream clipboard copy over deprecated one (#5109) 2026-04-20 23:18:18 +04:00
tool-ui-web-search.tsx Studio: surface Anthropic document citations inline + in Sources panel (#5718) 2026-05-25 23:39:02 -07:00
tooltip-icon-button.tsx Studio: Dark theme refactor, right sidebar redesign, and chat UI polish (#5150) 2026-05-07 14:33:31 +04:00
use-intent-aware-autoscroll.tsx Studio: Dark theme refactor, right sidebar redesign, and chat UI polish (#5150) 2026-05-07 14:33:31 +04:00