Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/components/ModelCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,16 @@ const ModelCatalog = ({ models }: { models: WorkersAIModelsSchema[] }) => {
}

if (filters.search) {
if (!model.name.toLowerCase().includes(filters.search.toLowerCase())) {
const searchTerm = filters.search.toLowerCase();
const matchesName = model.name.toLowerCase().includes(searchTerm);
const matchesDescription = model.description
.toLowerCase()
.includes(searchTerm);
const matchesTags = model.tags?.some((tag) =>
tag.toLowerCase().includes(searchTerm),
);

if (!matchesName && !matchesDescription && !matchesTags) {
return false;
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/content/workers-ai-models/llama-guard-3-8b.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
"description": "Family of generative text models, such as large language models (LLM), that can be adapted for a variety of natural language tasks."
},
"created_at": "2025-01-22 23:26:23.495",
"tags": [],
"tags": [
"moderation",
"safety",
"content-filtering",
"guardrails"
],
"properties": [
{
"property_id": "context_window",
Expand Down
7 changes: 6 additions & 1 deletion src/content/workers-ai-models/llamaguard-7b-awq.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
"description": "Family of generative text models, such as large language models (LLM), that can be adapted for a variety of natural language tasks."
},
"created_at": "2024-02-06 18:13:59.060",
"tags": [],
"tags": [

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If these aren't present on the upstream data source, they won't persist for the next update.

@thatsKevinJain, is that something you can help with?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should have followed up here. We've made + merged some changes that enable adding these tags upstream and exposing them over the API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, the API is updated to surface these tags.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The API is updated to surface the new tags, we should be good to merge this PR

"moderation",
"safety",
"content-filtering",
"guardrails"
],
"properties": [
{
"property_id": "beta",
Expand Down