Skip to content

Commit d4cd15d

Browse files
szabostevethekofimensah
authored andcommitted
[E&A][bugbash] Fixes an admonition in HuggingFace inference integration docs (#757)
As title states.
1 parent 54d8ec4 commit d4cd15d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

explore-analyze/elastic-inference/inference-api/huggingface-inference-integration.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ Refer to the [{{infer-cap}} APIs](https://www.elastic.co/docs/api/doc/elasticsea
1515

1616
Creates an {{infer}} endpoint to perform an {{infer}} task with the `hugging_face` service.
1717

18-
1918
## {{api-request-title}} [infer-service-hugging-face-api-request]
2019

2120
`PUT /_inference/<task_type>/<inference_id>`
2221

23-
2422
## {{api-path-parms-title}} [infer-service-hugging-face-api-path-params]
2523

2624
`<inference_id>`
@@ -33,8 +31,6 @@ Creates an {{infer}} endpoint to perform an {{infer}} task with the `hugging_fac
3331

3432
* `text_embedding`.
3533

36-
37-
3834
## {{api-request-body-title}} [infer-service-hugging-face-api-request-body]
3935

4036
`chunking_settings`
@@ -52,7 +48,6 @@ Creates an {{infer}} endpoint to perform an {{infer}} task with the `hugging_fac
5248
`strategy`
5349
: (Optional, string) Specifies the chunking strategy. It could be either `sentence` or `word`.
5450

55-
5651
`service`
5752
: (Required, string) The type of service supported for the specified task type. In this case, `hugging_face`.
5853

@@ -63,7 +58,6 @@ Creates an {{infer}} endpoint to perform an {{infer}} task with the `hugging_fac
6358

6459
`api_key`
6560
: (Required, string) A valid access token of your Hugging Face account. You can find your Hugging Face access tokens or you can create a new one [on the settings page](https://huggingface.co/settings/tokens).
66-
6761
::::{important}
6862
You need to provide the API key only once, during the {{infer}} model creation. The [Get {{infer}} API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-get) does not retrieve your API key. After creating the {{infer}} model, you cannot change the associated API key. If you want to use a different API key, delete the {{infer}} model and recreate it with the same name and the updated API key.
6963
::::

0 commit comments

Comments
 (0)