feat(web): saved queries UI, file upload on ingest, playground hybrid/rerank#60
Merged
feat(web): saved queries UI, file upload on ingest, playground hybrid/rerank#60
Conversation
…/rerank Catches the UI up to the phase-2b backend tail: - Saved queries: list + create + delete + replay, rendered inside the expanded catalog row under the document list. Uses new React Query hooks (`useSavedQueries`) and the existing /queries route. - Ingest dialog: drag-and-drop + click-to-browse file picker for text-ish formats (txt, md, json, csv, yaml, …). Reads the file into the textarea and auto-fills `sourceFilename`. 5 MB cap. - Playground QueryForm: Hybrid + Rerank toggles wired to the runtime flags (`hybrid`, `rerank`). Vector-tab combos are blocked inline. Descriptions surface whether the bound store supports each lane. No backend changes — all routes already exist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UI catch-up for the phase-2b backend tail. Brings the web app in line with features that have already shipped server-side: saved queries, hybrid + rerank toggles, and proper file uploads.
useSavedQuerieshooks +SavedQueriesSectioncomponent, rendered inside the expanded catalog row under the document list. Talks to the existing/catalogs/{c}/queries+/queries/{q}/runroutes..txt,.md,.json,.csv,.yaml, …). Reads the file into the textarea and auto-fillssourceFilename. 5 MB cap, clear toast errors on unsupported types or oversize files.No backend changes — all routes and schemas already exist.
Test plan
pnpm typecheckclean (passes locally)pnpm lintclean (passes locally)pnpm --filter ai-workbench-web buildclean (passes locally).mdfile onto the ingest dialog, confirm textarea fills and filename auto-populates🤖 Generated with Claude Code