Skip to main content

Create a new Embedding Model Configuration

POST 

/api/v1/embedding-model-configs

Create a new embedding model configuration within a specified project.

Request

Query Parameters

    project_id uuidrequired

Cookie Parameters

    session any

Body

required

    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.

    Possible values: [AZURE_EMBEDDING]

    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

Responses

Successful Response

Schema

    any

Loading...