Mistral AI · Schema

EmbeddingRequest

AgentsArtificial IntelligenceBatch ProcessingChatEmbeddingsFine-TuningLarge Language ModelsOCR

Properties

Name Type Description
model string ID of the model to use for generating embeddings.
input object Input text to embed. Can be a single string or an array of strings for batch processing.
encoding_format string The format to return the embeddings in.
View JSON Schema on GitHub

JSON Schema

mistral-ai-embeddingrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EmbeddingRequest",
  "title": "EmbeddingRequest",
  "type": "object",
  "required": [
    "model",
    "input"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "ID of the model to use for generating embeddings.",
      "example": "mistral-embed"
    },
    "input": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "Input text to embed. Can be a single string or an array of strings for batch processing."
    },
    "encoding_format": {
      "type": "string",
      "description": "The format to return the embeddings in.",
      "enum": [
        "float"
      ],
      "default": "float"
    }
  }
}