Skip to main content

Update Embedding Model Config

PUT 

/api/v1/embedding-model-configs/:embedding_model_config_id

Update an embedding model config by ID.

Request

Path Parameters

    embedding_model_config_id uuidrequired

Cookie Parameters

    session any

Body

required

    name

    object

    The name of the embedding model config.

    anyOf

    string

    embedding_config

    object

    The embedding configuration for the embedding model config.

    anyOf

Responses

Successful Response

Schema

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    The name of the embedding model config.

    embedding_config

    object

    required

    The embedding configuration for the embedding model config.

    oneOf

    type Type (string)

    Type of the embedding model.

    Default value: AZURE_EMBEDDING

    component

    object

    Configuration for the Azure OpenAI embedding model.

    model_name Model Name (string)

    The name of the OpenAI embedding model.

    Default value: text-embedding-ada-002
    embed_batch_size Embed Batch Size (integer)

    The batch size for embedding calls.

    Possible values: > 0 and <= 2048

    Default value: 10

    num_workers

    object

    The number of workers to use for async embedding calls.

    anyOf

    integer

    additional_kwargs object

    Additional kwargs for the OpenAI API.

    api_key

    object

    The OpenAI API key.

    anyOf

    string

    api_base Api Base (string)

    The base URL for Azure deployment.

    Default value:
    api_version Api Version (string)

    The version for Azure OpenAI API.

    Default value:
    max_retries Max Retries (integer)

    Maximum number of retries.

    Default value: 10
    timeout Timeout (number)

    Timeout for each request.

    Default value: 60

    default_headers

    object

    The default headers for API requests.

    anyOf

    property name* string
    reuse_client Reuse Client (boolean)

    Reuse the OpenAI client between requests. When doing anything with large volumes of async API calls, setting this to false can improve stability.

    Default value: true

    dimensions

    object

    The number of dimensions on the output embedding vectors. Works only with v3 embedding models.

    anyOf

    integer

    azure_endpoint

    object

    The Azure endpoint to use.

    anyOf

    string

    azure_deployment

    object

    The Azure deployment to use.

    anyOf

    string

    class_name Class Name (string)
    Default value: AzureOpenAIEmbedding
    project_id uuidrequired