Skip to content
Merged
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
2 changes: 1 addition & 1 deletion bin/fetch-ai-models.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fetch("https://ai.cloudflare.com/api/models")
const fileName = model.name.split("/")[2];
fs.writeFileSync(
`./src/content/workers-ai-models/${fileName}.json`,
JSON.stringify(model),
JSON.stringify(model, null, 4),
"utf-8",
);
});
Expand Down
49 changes: 48 additions & 1 deletion src/content/workers-ai-models/bart-large-cnn.json
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
{"id":"19bd38eb-bcda-4e53-bec2-704b4689b43a","source":1,"name":"@cf/facebook/bart-large-cnn","description":"BART is a transformer encoder-encoder (seq2seq) model with a bidirectional (BERT-like) encoder and an autoregressive (GPT-like) decoder. You can use this model for text summarization.","task":{"id":"6f4e65d8-da0f-40d2-9aa4-db582a5a04fd","name":"Summarization","description":"Summarization is the task of producing a shorter version of a document while preserving its important information. Some models can extract text from the original input, while other models can generate entirely new text."},"tags":[],"properties":[{"property_id":"beta","value":"true"}],"schema":{"input":{"type":"object","properties":{"input_text":{"type":"string","minLength":1,"description":"The text that you want the model to summarize"},"max_length":{"type":"integer","default":1024,"description":"The maximum length of the generated summary in tokens"}},"required":["input_text"]},"output":{"type":"object","contentType":"application/json","properties":{"summary":{"type":"string","description":"The summarized version of the input text"}}}}}
{
"id": "19bd38eb-bcda-4e53-bec2-704b4689b43a",
"source": 1,
"name": "@cf/facebook/bart-large-cnn",
"description": "BART is a transformer encoder-encoder (seq2seq) model with a bidirectional (BERT-like) encoder and an autoregressive (GPT-like) decoder. You can use this model for text summarization.",
"task": {
"id": "6f4e65d8-da0f-40d2-9aa4-db582a5a04fd",
"name": "Summarization",
"description": "Summarization is the task of producing a shorter version of a document while preserving its important information. Some models can extract text from the original input, while other models can generate entirely new text."
},
"tags": [],
"properties": [
{
"property_id": "beta",
"value": "true"
}
],
"schema": {
"input": {
"type": "object",
"properties": {
"input_text": {
"type": "string",
"minLength": 1,
"description": "The text that you want the model to summarize"
},
"max_length": {
"type": "integer",
"default": 1024,
"description": "The maximum length of the generated summary in tokens"
}
},
"required": [
"input_text"
]
},
"output": {
"type": "object",
"contentType": "application/json",
"properties": {
"summary": {
"type": "string",
"description": "The summarized version of the input text"
}
}
}
}
}
83 changes: 82 additions & 1 deletion src/content/workers-ai-models/bge-base-en-v1.5.json
Original file line number Diff line number Diff line change
@@ -1 +1,82 @@
{"id":"429b9e8b-d99e-44de-91ad-706cf8183658","source":1,"name":"@cf/baai/bge-base-en-v1.5","description":"BAAI general embedding (bge) models transform any given text into a compact vector","task":{"id":"0137cdcf-162a-4108-94f2-1ca59e8c65ee","name":"Text Embeddings","description":"Feature extraction models transform raw data into numerical features that can be processed while preserving the information in the original dataset. These models are ideal as part of building vector search applications or Retrieval Augmented Generation workflows with Large Language Models (LLM)."},"tags":[],"properties":[{"property_id":"beta","value":"false"},{"property_id":"info","value":"https://huggingface.co/BAAI/bge-base-en-v1.5"},{"property_id":"max_input_tokens","value":"512"},{"property_id":"output_dimensions","value":"768"}],"schema":{"input":{"type":"object","properties":{"text":{"oneOf":[{"type":"string","description":"The text to embed","minLength":1},{"type":"array","description":"Batch of text values to embed","items":{"type":"string","description":"The text to embed","minLength":1},"maxItems":100}]}},"required":["text"]},"output":{"type":"object","contentType":"application/json","properties":{"shape":{"type":"array","items":{"type":"number"}},"data":{"type":"array","description":"Embeddings of the requested text values","items":{"type":"array","description":"Floating point embedding representation shaped by the embedding model","items":{"type":"number"}}}}}}}
{
"id": "429b9e8b-d99e-44de-91ad-706cf8183658",
"source": 1,
"name": "@cf/baai/bge-base-en-v1.5",
"description": "BAAI general embedding (bge) models transform any given text into a compact vector",
"task": {
"id": "0137cdcf-162a-4108-94f2-1ca59e8c65ee",
"name": "Text Embeddings",
"description": "Feature extraction models transform raw data into numerical features that can be processed while preserving the information in the original dataset. These models are ideal as part of building vector search applications or Retrieval Augmented Generation workflows with Large Language Models (LLM)."
},
"tags": [],
"properties": [
{
"property_id": "beta",
"value": "false"
},
{
"property_id": "info",
"value": "https://huggingface.co/BAAI/bge-base-en-v1.5"
},
{
"property_id": "max_input_tokens",
"value": "512"
},
{
"property_id": "output_dimensions",
"value": "768"
}
],
"schema": {
"input": {
"type": "object",
"properties": {
"text": {
"oneOf": [
{
"type": "string",
"description": "The text to embed",
"minLength": 1
},
{
"type": "array",
"description": "Batch of text values to embed",
"items": {
"type": "string",
"description": "The text to embed",
"minLength": 1
},
"maxItems": 100
}
]
}
},
"required": [
"text"
]
},
"output": {
"type": "object",
"contentType": "application/json",
"properties": {
"shape": {
"type": "array",
"items": {
"type": "number"
}
},
"data": {
"type": "array",
"description": "Embeddings of the requested text values",
"items": {
"type": "array",
"description": "Floating point embedding representation shaped by the embedding model",
"items": {
"type": "number"
}
}
}
}
}
}
}
83 changes: 82 additions & 1 deletion src/content/workers-ai-models/bge-large-en-v1.5.json
Original file line number Diff line number Diff line change
@@ -1 +1,82 @@
{"id":"01bc2fb0-4bca-4598-b985-d2584a3f46c0","source":1,"name":"@cf/baai/bge-large-en-v1.5","description":"BAAI general embedding (bge) models transform any given text into a compact vector","task":{"id":"0137cdcf-162a-4108-94f2-1ca59e8c65ee","name":"Text Embeddings","description":"Feature extraction models transform raw data into numerical features that can be processed while preserving the information in the original dataset. These models are ideal as part of building vector search applications or Retrieval Augmented Generation workflows with Large Language Models (LLM)."},"tags":[],"properties":[{"property_id":"beta","value":"false"},{"property_id":"info","value":"https://huggingface.co/BAAI/bge-base-en-v1.5"},{"property_id":"max_input_tokens","value":"512"},{"property_id":"output_dimensions","value":"1024"}],"schema":{"input":{"type":"object","properties":{"text":{"oneOf":[{"type":"string","description":"The text to embed","minLength":1},{"type":"array","description":"Batch of text values to embed","items":{"type":"string","description":"The text to embed","minLength":1},"maxItems":100}]}},"required":["text"]},"output":{"type":"object","contentType":"application/json","properties":{"shape":{"type":"array","items":{"type":"number"}},"data":{"type":"array","description":"Embeddings of the requested text values","items":{"type":"array","description":"Floating point embedding representation shaped by the embedding model","items":{"type":"number"}}}}}}}
{
"id": "01bc2fb0-4bca-4598-b985-d2584a3f46c0",
"source": 1,
"name": "@cf/baai/bge-large-en-v1.5",
"description": "BAAI general embedding (bge) models transform any given text into a compact vector",
"task": {
"id": "0137cdcf-162a-4108-94f2-1ca59e8c65ee",
"name": "Text Embeddings",
"description": "Feature extraction models transform raw data into numerical features that can be processed while preserving the information in the original dataset. These models are ideal as part of building vector search applications or Retrieval Augmented Generation workflows with Large Language Models (LLM)."
},
"tags": [],
"properties": [
{
"property_id": "beta",
"value": "false"
},
{
"property_id": "info",
"value": "https://huggingface.co/BAAI/bge-base-en-v1.5"
},
{
"property_id": "max_input_tokens",
"value": "512"
},
{
"property_id": "output_dimensions",
"value": "1024"
}
],
"schema": {
"input": {
"type": "object",
"properties": {
"text": {
"oneOf": [
{
"type": "string",
"description": "The text to embed",
"minLength": 1
},
{
"type": "array",
"description": "Batch of text values to embed",
"items": {
"type": "string",
"description": "The text to embed",
"minLength": 1
},
"maxItems": 100
}
]
}
},
"required": [
"text"
]
},
"output": {
"type": "object",
"contentType": "application/json",
"properties": {
"shape": {
"type": "array",
"items": {
"type": "number"
}
},
"data": {
"type": "array",
"description": "Embeddings of the requested text values",
"items": {
"type": "array",
"description": "Floating point embedding representation shaped by the embedding model",
"items": {
"type": "number"
}
}
}
}
}
}
}
83 changes: 82 additions & 1 deletion src/content/workers-ai-models/bge-small-en-v1.5.json
Original file line number Diff line number Diff line change
@@ -1 +1,82 @@
{"id":"57fbd08a-a4c4-411c-910d-b9459ff36c20","source":1,"name":"@cf/baai/bge-small-en-v1.5","description":"BAAI general embedding (bge) models transform any given text into a compact vector","task":{"id":"0137cdcf-162a-4108-94f2-1ca59e8c65ee","name":"Text Embeddings","description":"Feature extraction models transform raw data into numerical features that can be processed while preserving the information in the original dataset. These models are ideal as part of building vector search applications or Retrieval Augmented Generation workflows with Large Language Models (LLM)."},"tags":[],"properties":[{"property_id":"beta","value":"false"},{"property_id":"info","value":"https://huggingface.co/BAAI/bge-base-en-v1.5"},{"property_id":"max_input_tokens","value":"512"},{"property_id":"output_dimensions","value":"384"}],"schema":{"input":{"type":"object","properties":{"text":{"oneOf":[{"type":"string","description":"The text to embed","minLength":1},{"type":"array","description":"Batch of text values to embed","items":{"type":"string","description":"The text to embed","minLength":1},"maxItems":100}]}},"required":["text"]},"output":{"type":"object","contentType":"application/json","properties":{"shape":{"type":"array","items":{"type":"number"}},"data":{"type":"array","description":"Embeddings of the requested text values","items":{"type":"array","description":"Floating point embedding representation shaped by the embedding model","items":{"type":"number"}}}}}}}
{
"id": "57fbd08a-a4c4-411c-910d-b9459ff36c20",
"source": 1,
"name": "@cf/baai/bge-small-en-v1.5",
"description": "BAAI general embedding (bge) models transform any given text into a compact vector",
"task": {
"id": "0137cdcf-162a-4108-94f2-1ca59e8c65ee",
"name": "Text Embeddings",
"description": "Feature extraction models transform raw data into numerical features that can be processed while preserving the information in the original dataset. These models are ideal as part of building vector search applications or Retrieval Augmented Generation workflows with Large Language Models (LLM)."
},
"tags": [],
"properties": [
{
"property_id": "beta",
"value": "false"
},
{
"property_id": "info",
"value": "https://huggingface.co/BAAI/bge-base-en-v1.5"
},
{
"property_id": "max_input_tokens",
"value": "512"
},
{
"property_id": "output_dimensions",
"value": "384"
}
],
"schema": {
"input": {
"type": "object",
"properties": {
"text": {
"oneOf": [
{
"type": "string",
"description": "The text to embed",
"minLength": 1
},
{
"type": "array",
"description": "Batch of text values to embed",
"items": {
"type": "string",
"description": "The text to embed",
"minLength": 1
},
"maxItems": 100
}
]
}
},
"required": [
"text"
]
},
"output": {
"type": "object",
"contentType": "application/json",
"properties": {
"shape": {
"type": "array",
"items": {
"type": "number"
}
},
"data": {
"type": "array",
"description": "Embeddings of the requested text values",
"items": {
"type": "array",
"description": "Floating point embedding representation shaped by the embedding model",
"items": {
"type": "number"
}
}
}
}
}
}
}
Loading
Loading