Skip to content

Commit

Permalink
[DOCS] Expands inference API docs (elastic#104047)
Browse files Browse the repository at this point in the history
Co-authored-by: David Kyle <[email protected]>
  • Loading branch information
szabosteve and davidkyle committed Jan 9, 2024
1 parent 2c44f91 commit 0575840
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/reference/inference/delete-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ experimental[]

Deletes an {infer} model deployment.

IMPORTANT: The {infer} APIs enable you to use certain services, such as ELSER,
OpenAI, or Hugging Face, in your cluster. This is not the same feature that you
can use on an ML node with custom {ml} models. If you want to train and use your
own model, use the <<ml-df-trained-models-apis>>.


[discrete]
[[delete-inference-api-request]]
Expand Down
6 changes: 6 additions & 0 deletions docs/reference/inference/get-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ experimental[]

Retrieves {infer} model information.

IMPORTANT: The {infer} APIs enable you to use certain services, such as ELSER,
OpenAI, or Hugging Face, in your cluster. This is not the same feature that you
can use on an ML node with custom {ml} models. If you want to train and use your
own model, use the <<ml-df-trained-models-apis>>.


[discrete]
[[get-inference-api-request]]
==== {api-request-title}
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/inference/inference-apis.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

experimental[]

IMPORTANT: The {infer} APIs enable you to use certain services, such as ELSER,
OpenAI, or Hugging Face, in your cluster. This is not the same feature that you
can use on an ML node with custom {ml} models. If you want to train and use your
own model, use the <<ml-df-trained-models-apis>>.

You can use the following APIs to manage {infer} models and perform {infer}:

* <<delete-inference-api>>
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/inference/post-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ experimental[]

Performs an inference task on an input text by using an {infer} model.

IMPORTANT: The {infer} APIs enable you to use certain services, such as ELSER,
OpenAI, or Hugging Face, in your cluster. This is not the same feature that you
can use on an ML node with custom {ml} models. If you want to train and use your
own model, use the <<ml-df-trained-models-apis>>.


[discrete]
[[post-inference-api-request]]
Expand Down
14 changes: 12 additions & 2 deletions docs/reference/inference/put-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ experimental[]

Creates a model to perform an {infer} task.

IMPORTANT: The {infer} APIs enable you to use certain services, such as ELSER,
OpenAI, or Hugging Face, in your cluster. This is not the same feature that you
can use on an ML node with custom {ml} models. If you want to train and use your
own model, use the <<ml-df-trained-models-apis>>.


[discrete]
[[put-inference-api-request]]
Expand All @@ -27,6 +32,10 @@ Creates a model to perform an {infer} task.
The create {infer} API enables you to create and configure an {infer} model to
perform a specific {infer} task.

The following services are available through the {infer} API:
* ELSER
* OpenAI
* Hugging Face

[discrete]
[[put-inference-api-path-params]]
Expand All @@ -52,8 +61,9 @@ The type of the {infer} task that the model will perform. Available task types:
(Required, string)
The type of service supported for the specified task type.
Available services:
* `elser`,
* `openai`.
* `elser`: specify the `sparse_embedding` task type to use the ELSER service.
* `openai`: specify the `text_embedding` task type to use the OpenAI service.
* `hugging_face`: specify the `text_embedding` task type to use the Hugging Face service.

`service_settings`::
(Required, object)
Expand Down

0 comments on commit 0575840

Please sign in to comment.