Repository navigation
Description
Problem Statement
The AI Catalog's tag filter bar matches tag names as substrings. That works only if the user already knows the OASF taxonomy. Someone who types what they actually want — "analyzing customer support tickets" — gets no matches, because no tag is named that. They are left guessing at hundreds of hierarchical labels.
Replaces the original scope of this issue (wiring the search bar to /v1/search). The UI does not consume /v1/search; it recommends tags and filters with them.
Proposed Solution
Keep one search bar. Add a suggest action that reinterprets the same text through the extractor (POST /v1/extract, #2001) and offers matching skills and domains as selectable tags.
[ analyzing customer support tickets ] [ Suggest tags ]
Matching tags
(none)
────────────────────────────────────────────
Suggested from your description
natural_language_processing/text_classification 12 records
customer_support/ticket_triage 4 records
Selecting a suggestion behaves exactly like selecting any other tag — it becomes a chip, and filtering still goes through GET /v1/agents?filter=. Nothing about the filtering path changes; only tag discovery does.
Design decisions
One search bar, not two. Both modes serve one intent — find a tag. Splitting the input by matching strategy exposes an implementation detail and forces an unsure user to choose an algorithm before knowing which works. The natural flow is escalation: type, scan, find nothing, ask for help.
Suggestions are added below, not swapped in. Replacing the substring matches creates a hidden mode: results no longer contain the typed text and there is no obvious way back. A labeled section avoids the mode entirely.
Empty state drives discovery. When substring matching returns nothing (exactly what happens when a user types a phrase), surface the action inline — "No tags match that — try suggesting from your description." This is the main path users will find the feature through.
Explicit trigger, not per-keystroke. Extraction is model inference and half-typed words are semantically meaningless. Use a button; if it should feel automatic, debounce ~500ms and require a space or ~15 characters.
Drop suggestions with no records. A suggested tag matching zero records is worse than no suggestion — the user takes our advice and lands on an empty catalog. The UI already loads GET /v1/tags for the typeahead, so intersect against that list client-side and drop the rest. Showing record counts alongside makes the choice informed (needs a count on CatalogTag, tracked separately).
Skills and domains only. Keywords come back from /v1/extract but have no tag to map to; do not render them as selectable.
Degrade quietly. /v1/extract returns 503 when no extractor is configured — hide or disable the action rather than surfacing an error.
Acceptance criteria
- A suggest action next to the existing tag filter bar calls
POST /v1/extractwith the typed text - Suggested skills and domains render as a labeled section below the substring matches, not replacing them
- Suggestions not present in
GET /v1/tagsare dropped - Selecting a suggestion produces the same tag chip and the same
GET /v1/agents?filter=query as a manually chosen tag - Empty substring results prompt the suggest action inline
- Loading state while extracting; action hidden or disabled on 503
- Keywords are not rendered as tags
Depends on
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][Feature]: AI Catalog UI: wire the search bar to /v1/search[/-][+][Feature]: AI Catalog UI: recommend tags from a description (extractor-backed)[/+]