Repository navigation
Studio: make adding files to a knowledge base discoverable from the chat - #12779
Conversation
…refresh knowledge base readers
|
Reached Codex review convergence at oobabooga#335. |
|
Two red checks here:
|
|
Review record for #12779, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#459. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
In the desktop app, dropping files onto a chat that retrieves from a knowledge base shows:
The toast gives no way to do that, and the dropped files are discarded. The only route to a knowledge base's files is the RAG pill's "Manage knowledge bases…", where the knowledge base name is an unstyled button next to a pencil that renames it.
Reported on Reddit: the reporter searched Settings and both sidebars, then found it by trial and error.
Fix
Add "release-notes.md" to "Product docs"?with an "Add" action. "Add" opens that knowledge base's documents and uploads the dropped files there, through the same native path upload the dialog already uses. The toast is neutral rather than an error and stays up for as long as the dropped files can still be added. Nothing goes to the thread, as before.In the browser, a dropped file is still attached to the message, so the toast only appears in the desktop app. The other changes apply to both.
Validation
Live A/B in headless Chromium against one backend on a fresh profile. The desktop drop was simulated with the Tauri bridge stubbed; its path leases were signed with a test secret and verified by the real backend upload route.
Before (main) and after (this PR):
Dropping a file on a chat that uses a knowledge base (desktop app):
Clicking the "Knowledge base: Product docs" chip:
The list in "Manage knowledge bases…", row hovered:
Right after creating a knowledge base:
Limitations
Before / after (Studio, merge base vs this PR)
Two isolated Studio installs built from the merge base (
6f4d997) and this branch (856e96d), driven in headless Chromium with a knowledge base "Product docs" selected as the chat's retrieval source.Clicking the "Knowledge base: Product docs" chip: before it is a plain label and nothing opens; after it opens that knowledge base's documents with Upload.
"Manage knowledge bases..." with the row hovered: the row gains a chevron, a hover background and a tooltip.
Right after creating "Release notes": before, back to the list; after, the new knowledge base's documents view with Upload.