Skip to content

Improve Workers AI model catalog search and display tags#29032

Open
mattrothenberg wants to merge 1 commit intoproductionfrom
mr/model-catalog-search-and-tags
Open

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

Conversation

@mattrothenberg
Copy link
Contributor

@mattrothenberg mattrothenberg commented Mar 16, 2026

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
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
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants