You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding" | "rerank" | "completion" | "chat_completion"))*: The task type
8043
8043
** *`inference_id` (Optional, string)*: The inference Id
8044
8044
8045
+
[discrete]
8046
+
==== inference
8047
+
Perform inference on the service.
8048
+
8049
+
This API enables you to use machine learning models to perform specific tasks on data that you provide as an input.
8050
+
It returns a response with the results of the tasks.
8051
+
The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API.
8052
+
8053
+
For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation.
8054
+
8055
+
> info
8056
+
> 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. 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.
** *`inference_id` (string)*: The unique identifier for the inference endpoint.
8069
+
** *`input` (string | string[])*: The text on which you want to perform the inference task.
8070
+
It can be a single string or an array.
8071
+
8072
+
> info
8073
+
> Inference endpoints for the `completion` task type currently only support a single string as input.
8074
+
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding" | "rerank" | "completion" | "chat_completion"))*: The type of inference task that the model performs.
8075
+
** *`query` (Optional, string)*: The query input, which is required only for the `rerank` task.
8076
+
It is not required for other tasks.
8077
+
** *`task_settings` (Optional, User-defined value)*: Task settings for the individual inference request.
8078
+
These settings are specific to the task type you specified and override the task settings specified when initializing the service.
8079
+
** *`timeout` (Optional, string | -1 | 0)*: The amount of time to wait for the inference request to complete.
8080
+
8045
8081
[discrete]
8046
8082
==== put
8047
8083
Create an inference endpoint.
@@ -9039,7 +9075,7 @@ You must then re-submit the API request with the acknowledge parameter set to tr
9039
9075
NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license.
9040
9076
If the operator privileges feature is enabled, only operator users can use this API.
@@ -16077,7 +16113,7 @@ A summary is returned when the upgrade is finished.
16077
16113
To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster.
16078
16114
You may want to perform a recent cluster backup prior to the upgrade.
@@ -16194,7 +16230,7 @@ If your user is allowed to read index `a`, but not index `b`, then the exact sam
16194
16230
16195
16231
When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch.
@@ -16267,7 +16303,7 @@ When you add a watch you can also define its initial active state by setting the
16267
16303
When Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges.
16268
16304
If the user is able to read index `a`, but not index `b`, the same will apply when the watch runs.
@@ -354,7 +354,7 @@ export default class Cluster {
354
354
355
355
/**
356
356
* Update voting configuration exclusions. Update the cluster voting config exclusions by node IDs or node names. By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. Clusters should have no voting configuration exclusions in normal operation. Once the excluded nodes have stopped, clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`. This API waits for the nodes to be fully removed from the cluster before it returns. If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false` to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. A response to `POST /_cluster/voting_config_exclusions` with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`. If the call to `POST /_cluster/voting_config_exclusions` fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. In that case, you may safely retry the call. NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.
357
-
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions | Elasticsearch API documentation}
357
+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions | Elasticsearch API documentation}
0 commit comments