{ "name": "@cf/baai/bge-small-en-v1.5", "properties": [ { "property_id": "async_queue", "value": "true" }, { "property_id": "price", "value": [ { "unit": "per M input tokens", "price": 0.0202, "currency": "USD" } ] }, { "property_id": "info", "value": "https://huggingface.co/BAAI/bge-small-en-v1.5" }, { "property_id": "max_input_tokens", "value": "512" }, { "property_id": "output_dimensions", "value": "384" } ], "id": "57fbd08a-a4c4-411c-910d-b9459ff36c20", "source": 1, "description": "BAAI general embedding (Small) model that transforms any given text into a 384-dimensional 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)." }, "created_at": "2023-11-07 15:43:58.042", "tags": [], "schema": { "input": { "type": "object", "oneOf": [ { "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 } ] }, "pooling": { "type": "string", "enum": [ "mean", "cls" ], "default": "mean", "description": "The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy." } }, "required": [ "text" ] }, { "properties": { "requests": { "type": "array", "description": "Batch of the embeddings requests to run using async-queue", "items": { "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 } ] }, "pooling": { "type": "string", "enum": [ "mean", "cls" ], "default": "mean", "description": "The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy." } }, "required": [ "text" ] } } }, "required": [ "requests" ] } ] }, "output": { "oneOf": [ { "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" } } }, "pooling": { "type": "string", "enum": [ "mean", "cls" ], "description": "The pooling method used in the embedding process." } } }, { "type": "object", "contentType": "application/json", "title": "Async response", "properties": { "request_id": { "type": "string", "description": "The async request id that can be used to obtain the results." } } } ] } }, "deprecated": false }