Create an Azure AI studio inference endpoint
- PUT /_inference/{task_type}/{azureaistudio_inference_id}
Create an inference endpoint to perform an inference task with the azureaistudio service.
Required authorization
- Cluster privileges manage_inference
Request body
-
chunking_settingsobject -
The chunking configuration object.
- Reference
-
max_chunk_sizenumber · default: 250 -
The maximum size of a chunk in words. This value cannot be higher than
300or lower than20(forsentencestrategy) or10(forwordstrategy). -
overlapnumber · default: 100 -
The number of overlapping words for chunks. It is applicable only to a
wordchunking strategy. This value cannot be higher than half themax_chunk_sizevalue. -
servicerequired -
The type of service supported for the specified task type. In this case,
azureaistudio. -
Values:
azureaistudio -
service_settingsobjectrequired -
Settings used to install the inference model. These settings are specific to the
openaiservice. -
api_keystringrequired -
A valid API key of your Azure AI Studio model deployment. This key can be found on the overview page for your deployment in the management section of your Azure AI Studio account.
ImportantYou need to provide the API key only once, during the inference model creation. The get inference endpoint API does not retrieve your API key.
- External docs
-
endpoint_typestringrequired -
The type of endpoint that is available for deployment through Azure AI Studio:
tokenorrealtime. Thetokenendpoint type is for "pay as you go" endpoints that are billed per token. Therealtimeendpoint type is for "real-time" endpoints that are billed per hour of usage. - External docs
-
targetstringrequired -
The target URL of your Azure AI Studio model deployment. This can be found on the overview page for your deployment in the management section of your Azure AI Studio account.
-
providerstringrequired -
The model provider for your deployment. Note that some providers may support only certain task types. Supported providers include:
cohere- available fortext_embedding,rerankandcompletiontask typesdatabricks- available forcompletiontask type onlymeta- available forcompletiontask type onlymicrosoft_phi- available forcompletiontask type onlymistral- available forcompletiontask type onlyopenai- available fortext_embeddingandcompletiontask types
-
task_settingsobject -
Settings to configure the inference task. These settings are specific to the task type you specified.
-
do_samplenumber -
For a
completiontask, instruct the inference process to perform sampling. It has no effect unlesstemperatureortop_pis specified. -
max_new_tokensnumber · default: 64 -
For a
completiontask, provide a hint for the maximum number of output tokens to be generated. -
temperaturenumber -
For a
completiontask, control the apparent creativity of generated completions with a sampling temperature. It must be a number in the range of 0.0 to 2.0. It should not be used iftop_pis specified.
Response
-
chunking_settingsobject -
Chunking configuration object
-
max_chunk_sizenumber · default: 250 -
The maximum size of a chunk in words. This value cannot be higher than
300or lower than20(forsentencestrategy) or10(forwordstrategy). -
overlapnumber · default: 100 -
The number of overlapping words for chunks. It is applicable only to a
wordchunking strategy. This value cannot be higher than half themax_chunk_sizevalue.