Skip to content

Commit

Permalink
[ML] [DOCS] Update the model part upload URL in example (#80181)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle authored Nov 2, 2021
1 parent ff06c2e commit 58a5173
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ The total number of parts that will be uploaded. Must be greater than 0.
The following example creates a model definition part for a previously
stored model configuration. The definition part is stored in the index
that is configured by the `location.index.name`.


NOTE: The value of the `definition` object is elided from the example

NOTE: The value of the `definition` object is elided from the example
as it is a very large base64 encoded string.

[source,console]
--------------------------------------------------
PUT _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/part/0
PUT _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/definition/0
{
"definition": "...",
"total_definition_length": 265632637,
Expand All @@ -81,4 +81,4 @@ The API returns the following results:
{
"acknowledged": true
}
----
----

0 comments on commit 58a5173

Please sign in to comment.