Skip to content

Improve Workers AI model catalog search and display tags - #29032

Closed
mattrothenberg wants to merge 1 commit into
productionfrom
mr/model-catalog-search-and-tags
Closed

Improve Workers AI model catalog search and display tags#29032
mattrothenberg wants to merge 1 commit into
productionfrom
mr/model-catalog-search-and-tags

Conversation

@mattrothenberg

@mattrothenberg mattrothenberg commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Resurrects and expands on #27188 which was auto-closed by the stale bot.

  • Search now includes tags and descriptions - Users can search for "moderation", "safety", etc. and find relevant models like Llama Guard
  • Tags displayed on model pages - Clickable tag pills below the description that link back to filtered catalog
  • Tags shown on catalog cards - Up to 3 tags displayed as badges on each model card
  • Fixed card alignment - Badges now align at the bottom of cards consistently
Screenshot 2026-03-16 at 7 56 13 PM

Problem

A user reported they couldn't find moderation/safety models when searching for "moderation" in the model catalog. The search only checked model names, missing relevant models like llama-guard-3-8b.

Changes

  • src/components/ModelCatalog.tsx - Search filter now checks name, description, and tags
  • src/components/models/ModelBadges.tsx - Added showTags prop to display model tags as badges
  • src/pages/workers-ai/models/[name].astro - Display clickable tag pills on model detail pages
Screen.Recording.2025-12-16.at.8.46.57.PM.mov

Documentation checklist

- Search now matches model name, description, AND tags
- Display clickable tag pills on individual model pages
- Show tags as badges on model cards in catalog
- Fix card alignment so badges align at bottom
@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/components/ @cloudflare/content-engineering, @kodster28
*.astro @cloudflare/content-engineering, @kodster28

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label is helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

@github-actions github-actions Bot added the stale label Apr 1, 2026
@github-actions
github-actions Bot deleted the mr/model-catalog-search-and-tags branch May 16, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants