Skip to content

Commit 7ee29cd

Browse files
Auto-generated API code
1 parent 14517d1 commit 7ee29cd

File tree

4 files changed

+44
-105
lines changed

4 files changed

+44
-105
lines changed

docs/reference.asciidoc

Lines changed: 17 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,12 +3043,13 @@ client.cat.nodes({ ... })
30433043
** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values.
30443044
** *`full_id` (Optional, boolean | string)*: If `true`, return the full node ID. If `false`, return the shortened node ID.
30453045
** *`include_unloaded_segments` (Optional, boolean)*: If true, the response includes information from segments that are not loaded into memory.
3046-
** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards.
3047-
** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted.
3046+
** *`h` (Optional, Enum("build" | "completion.size" | "cpu" | "disk.avail" | "disk.total" | "disk.used" | "disk.used_percent" | "fielddata.evictions" | "fielddata.memory_size" | "file_desc.current" | "file_desc.max" | "file_desc.percent" | "flush.total" | "flush.total_time" | "get.current" | "get.exists_time" | "get.exists_total" | "get.missing_time" | "get.missing_total" | "get.time" | "get.total" | "heap.current" | "heap.max" | "heap.percent" | "http_address" | "id" | "indexing.delete_current" | "indexing.delete_time" | "indexing.delete_total" | "indexing.index_current" | "indexing.index_failed" | "indexing.index_failed_due_to_version_conflict" | "indexing.index_time" | "indexing.index_total" | "ip" | "jdk" | "load_1m" | "load_5m" | "load_15m" | "mappings.total_count" | "mappings.total_estimated_overhead_in_bytes" | "master" | "merges.current" | "merges.current_docs" | "merges.current_size" | "merges.total" | "merges.total_docs" | "merges.total_size" | "merges.total_time" | "name" | "node.role" | "pid" | "port" | "query_cache.memory_size" | "query_cache.evictions" | "query_cache.hit_count" | "query_cache.miss_count" | "ram.current" | "ram.max" | "ram.percent" | "refresh.total" | "refresh.time" | "request_cache.memory_size" | "request_cache.evictions" | "request_cache.hit_count" | "request_cache.miss_count" | "script.compilations" | "script.cache_evictions" | "search.fetch_current" | "search.fetch_time" | "search.fetch_total" | "search.open_contexts" | "search.query_current" | "search.query_time" | "search.query_total" | "search.scroll_current" | "search.scroll_time" | "search.scroll_total" | "segments.count" | "segments.fixed_bitset_memory" | "segments.index_writer_memory" | "segments.memory" | "segments.version_map_memory" | "shard_stats.total_count" | "suggest.current" | "suggest.time" | "suggest.total" | "uptime" | "version") | Enum("build" | "completion.size" | "cpu" | "disk.avail" | "disk.total" | "disk.used" | "disk.used_percent" | "fielddata.evictions" | "fielddata.memory_size" | "file_desc.current" | "file_desc.max" | "file_desc.percent" | "flush.total" | "flush.total_time" | "get.current" | "get.exists_time" | "get.exists_total" | "get.missing_time" | "get.missing_total" | "get.time" | "get.total" | "heap.current" | "heap.max" | "heap.percent" | "http_address" | "id" | "indexing.delete_current" | "indexing.delete_time" | "indexing.delete_total" | "indexing.index_current" | "indexing.index_failed" | "indexing.index_failed_due_to_version_conflict" | "indexing.index_time" | "indexing.index_total" | "ip" | "jdk" | "load_1m" | "load_5m" | "load_15m" | "mappings.total_count" | "mappings.total_estimated_overhead_in_bytes" | "master" | "merges.current" | "merges.current_docs" | "merges.current_size" | "merges.total" | "merges.total_docs" | "merges.total_size" | "merges.total_time" | "name" | "node.role" | "pid" | "port" | "query_cache.memory_size" | "query_cache.evictions" | "query_cache.hit_count" | "query_cache.miss_count" | "ram.current" | "ram.max" | "ram.percent" | "refresh.total" | "refresh.time" | "request_cache.memory_size" | "request_cache.evictions" | "request_cache.hit_count" | "request_cache.miss_count" | "script.compilations" | "script.cache_evictions" | "search.fetch_current" | "search.fetch_time" | "search.fetch_total" | "search.open_contexts" | "search.query_current" | "search.query_time" | "search.query_total" | "search.scroll_current" | "search.scroll_time" | "search.scroll_total" | "segments.count" | "segments.fixed_bitset_memory" | "segments.index_writer_memory" | "segments.memory" | "segments.version_map_memory" | "shard_stats.total_count" | "suggest.current" | "suggest.time" | "suggest.total" | "uptime" | "version")[])*: A list of columns names to display.
3047+
It supports simple wildcards.
3048+
** *`s` (Optional, string | string[])*: A list of column names or aliases that determines the sort order.
30483049
Sorting defaults to ascending and can be changed by setting `:asc`
30493050
or `:desc` as a suffix to the column name.
3050-
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
3051-
** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: Unit used to display time values.
3051+
** *`master_timeout` (Optional, string | -1 | 0)*: The period to wait for a connection to the master node.
3052+
** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: The unit used to display time values.
30523053

30533054
[discrete]
30543055
==== pending_tasks
@@ -5774,7 +5775,7 @@ If no index is specified or the index does not have a default analyzer, the anal
57745775
** *`analyzer` (Optional, string)*: The name of the analyzer that should be applied to the provided `text`.
57755776
This could be a built-in analyzer, or an analyzer that’s been configured in the index.
57765777
** *`attributes` (Optional, string[])*: Array of token attributes used to filter the output of the `explain` parameter.
5777-
** *`char_filter` (Optional, string | { type, escaped_tags } | { type, mappings, mappings_path } | { type, flags, pattern, replacement } | { type, mode, name } | { type, normalize_kana, normalize_kanji }[])*: Array of character filters used to preprocess characters before the tokenizer.
5778+
** *`char_filter` (Optional, string | { type, escaped_tags } | { type, mappings, mappings_path } | { type, flags, pattern, replacement } | { type, mode, name, unicode_set_filter } | { type, normalize_kana, normalize_kanji }[])*: Array of character filters used to preprocess characters before the tokenizer.
57785779
** *`explain` (Optional, boolean)*: If `true`, the response includes token attributes and additional details.
57795780
** *`field` (Optional, string)*: Field used to derive the analyzer.
57805781
To use this parameter, you must specify an index.
@@ -7968,6 +7969,17 @@ Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
79687969
==== chat_completion_unified
79697970
Perform chat completion inference
79707971

7972+
The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation.
7973+
It only works with the `chat_completion` task type for `openai` and `elastic` inference services.
7974+
7975+
IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.
7976+
For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.
7977+
7978+
NOTE: The `chat_completion` task type is only available within the _stream API and only supports streaming.
7979+
The Chat completion inference API and the Stream inference API differ in their response structure and capabilities.
7980+
The Chat completion inference API provides more comprehensive customization options through more fields and function calling support.
7981+
If you use the `openai` service or the `elastic` service, use the Chat completion inference API.
7982+
79717983
{ref}/chat-completion-inference-api.html[Endpoint documentation]
79727984
[source,ts]
79737985
----
@@ -8077,11 +8089,6 @@ These settings are specific to the task type you specified and override the task
80778089
[discrete]
80788090
==== put
80798091
Create an inference endpoint.
8080-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8081-
After creating the endpoint, wait for the model deployment to complete before using it.
8082-
To verify the deployment status, use the get trained model statistics API.
8083-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8084-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
80858092

80868093
IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.
80878094
For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models.
@@ -8107,12 +8114,6 @@ Create an AlibabaCloud AI Search inference endpoint.
81078114

81088115
Create an inference endpoint to perform an inference task with the `alibabacloud-ai-search` service.
81098116

8110-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8111-
After creating the endpoint, wait for the model deployment to complete before using it.
8112-
To verify the deployment status, use the get trained model statistics API.
8113-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8114-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8115-
81168117
{ref}/infer-service-alibabacloud-ai-search.html[Endpoint documentation]
81178118
[source,ts]
81188119
----
@@ -8140,12 +8141,6 @@ Creates an inference endpoint to perform an inference task with the `amazonbedro
81408141
>info
81418142
> You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys.
81428143

8143-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8144-
After creating the endpoint, wait for the model deployment to complete before using it.
8145-
To verify the deployment status, use the get trained model statistics API.
8146-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8147-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8148-
81498144
{ref}/infer-service-amazon-bedrock.html[Endpoint documentation]
81508145
[source,ts]
81518146
----
@@ -8170,12 +8165,6 @@ Create an Anthropic inference endpoint.
81708165

81718166
Create an inference endpoint to perform an inference task with the `anthropic` service.
81728167

8173-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8174-
After creating the endpoint, wait for the model deployment to complete before using it.
8175-
To verify the deployment status, use the get trained model statistics API.
8176-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8177-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8178-
81798168
{ref}/infer-service-anthropic.html[Endpoint documentation]
81808169
[source,ts]
81818170
----
@@ -8201,12 +8190,6 @@ Create an Azure AI studio inference endpoint.
82018190

82028191
Create an inference endpoint to perform an inference task with the `azureaistudio` service.
82038192

8204-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8205-
After creating the endpoint, wait for the model deployment to complete before using it.
8206-
To verify the deployment status, use the get trained model statistics API.
8207-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8208-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8209-
82108193
{ref}/infer-service-azure-ai-studio.html[Endpoint documentation]
82118194
[source,ts]
82128195
----
@@ -8238,12 +8221,6 @@ The list of chat completion models that you can choose from in your Azure OpenAI
82388221

82398222
The list of embeddings models that you can choose from in your deployment can be found in the [Azure models documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings).
82408223

8241-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8242-
After creating the endpoint, wait for the model deployment to complete before using it.
8243-
To verify the deployment status, use the get trained model statistics API.
8244-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8245-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8246-
82478224
{ref}/infer-service-azure-openai.html[Endpoint documentation]
82488225
[source,ts]
82498226
----
@@ -8269,12 +8246,6 @@ Create a Cohere inference endpoint.
82698246

82708247
Create an inference endpoint to perform an inference task with the `cohere` service.
82718248

8272-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8273-
After creating the endpoint, wait for the model deployment to complete before using it.
8274-
To verify the deployment status, use the get trained model statistics API.
8275-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8276-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8277-
82788249
{ref}/infer-service-cohere.html[Endpoint documentation]
82798250
[source,ts]
82808251
----
@@ -8374,12 +8345,6 @@ Create an Google AI Studio inference endpoint.
83748345

83758346
Create an inference endpoint to perform an inference task with the `googleaistudio` service.
83768347

8377-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8378-
After creating the endpoint, wait for the model deployment to complete before using it.
8379-
To verify the deployment status, use the get trained model statistics API.
8380-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8381-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8382-
83838348
{ref}/infer-service-google-ai-studio.html[Endpoint documentation]
83848349
[source,ts]
83858350
----
@@ -8402,12 +8367,6 @@ Create a Google Vertex AI inference endpoint.
84028367

84038368
Create an inference endpoint to perform an inference task with the `googlevertexai` service.
84048369

8405-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8406-
After creating the endpoint, wait for the model deployment to complete before using it.
8407-
To verify the deployment status, use the get trained model statistics API.
8408-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8409-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8410-
84118370
{ref}/infer-service-google-vertex-ai.html[Endpoint documentation]
84128371
[source,ts]
84138372
----
@@ -8446,12 +8405,6 @@ The following models are recommended for the Hugging Face service:
84468405
* `multilingual-e5-base`
84478406
* `multilingual-e5-small`
84488407

8449-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8450-
After creating the endpoint, wait for the model deployment to complete before using it.
8451-
To verify the deployment status, use the get trained model statistics API.
8452-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8453-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8454-
84558408
{ref}/infer-service-hugging-face.html[Endpoint documentation]
84568409
[source,ts]
84578410
----
@@ -8477,12 +8430,6 @@ Create an inference endpoint to perform an inference task with the `jinaai` serv
84778430
To review the available `rerank` models, refer to <https://jina.ai/reranker>.
84788431
To review the available `text_embedding` models, refer to the <https://jina.ai/embeddings/>.
84798432

8480-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8481-
After creating the endpoint, wait for the model deployment to complete before using it.
8482-
To verify the deployment status, use the get trained model statistics API.
8483-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8484-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8485-
84868433
{ref}/infer-service-jinaai.html[Endpoint documentation]
84878434
[source,ts]
84888435
----
@@ -8506,12 +8453,6 @@ These settings are specific to the task type you specified.
85068453
Create a Mistral inference endpoint.
85078454

85088455
Creates an inference endpoint to perform an inference task with the `mistral` service.
8509-
8510-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8511-
After creating the endpoint, wait for the model deployment to complete before using it.
8512-
To verify the deployment status, use the get trained model statistics API.
8513-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8514-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
85158456
[source,ts]
85168457
----
85178458
client.inference.putMistral({ task_type, mistral_inference_id, service, service_settings })
@@ -8534,12 +8475,6 @@ Create an OpenAI inference endpoint.
85348475

85358476
Create an inference endpoint to perform an inference task with the `openai` service or `openai` compatible APIs.
85368477

8537-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8538-
After creating the endpoint, wait for the model deployment to complete before using it.
8539-
To verify the deployment status, use the get trained model statistics API.
8540-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8541-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8542-
85438478
{ref}/infer-service-openai.html[Endpoint documentation]
85448479
[source,ts]
85458480
----
@@ -8593,12 +8528,6 @@ Create an inference endpoint to perform an inference task with the `watsonxai` s
85938528
You need an IBM Cloud Databases for Elasticsearch deployment to use the `watsonxai` inference service.
85948529
You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform.
85958530

8596-
When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
8597-
After creating the endpoint, wait for the model deployment to complete before using it.
8598-
To verify the deployment status, use the get trained model statistics API.
8599-
Look for `"state": "fully_allocated"` in the response and ensure that the `"allocation_count"` matches the `"target_allocation_count"`.
8600-
Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
8601-
86028531
{ref}/infer-service-watsonx-ai.html[Endpoint documentation]
86038532
[source,ts]
86048533
----

0 commit comments

Comments
 (0)