diff --git a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc index e92d8e12d..27278ffd3 100644 --- a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc +++ b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:276 +// inference/put-inference.asciidoc:275 [source, python] ---- diff --git a/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc b/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc index d4550057e..aff06a881 100644 --- a/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc +++ b/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc @@ -5,8 +5,6 @@ resp = client.ml.start_trained_model_deployment( model_id="my_model", deployment_id="my_model_for_ingest", - wait_for="started", - timeout="1m", ) print(resp) ---- \ No newline at end of file diff --git a/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc b/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc index 01acd4ce7..d4aa29269 100644 --- a/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc +++ b/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:371 +// inference/put-inference.asciidoc:369 [source, python] ---- diff --git a/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc b/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc new file mode 100644 index 000000000..7118af7e4 --- /dev/null +++ b/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc @@ -0,0 +1,9 @@ +// api-conventions.asciidoc:344 + +[source, python] +---- +resp = client.search( + body={"size": "1000"}, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc b/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc index 5aeeb40da..5d5454084 100644 --- a/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc +++ b/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc @@ -1,4 +1,4 @@ -// inference/post-inference.asciidoc:72 +// inference/post-inference.asciidoc:73 [source, python] ---- diff --git a/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc b/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc index 0f131773f..4a576819a 100644 --- a/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc +++ b/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc @@ -4,4 +4,4 @@ ---- resp = client.info() print(resp) ----- +---- \ No newline at end of file diff --git a/docs/examples/46884e00674f82e7a7bc8b418d1777de.asciidoc b/docs/examples/46884e00674f82e7a7bc8b418d1777de.asciidoc deleted file mode 100644 index ffa7943d2..000000000 --- a/docs/examples/46884e00674f82e7a7bc8b418d1777de.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -// inference/put-inference.asciidoc:252 - -[source, python] ----- - -resp = client.inference.put_model( - task_type="text_embedding", - inference_id="cohere_embeddings", - body={ - "service": "cohere", - "service_settings": { - "api_key": "api_key", - "model_id": "embed-english-v3.0", - "embedding_type": "int8", - }, - "task_settings": {}, - }, -) -print(resp) ----- \ No newline at end of file diff --git a/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc b/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc index b963b5e43..c64de0814 100644 --- a/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc +++ b/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc @@ -1,4 +1,4 @@ -// inference/delete-inference.asciidoc:51 +// inference/delete-inference.asciidoc:53 [source, python] ---- diff --git a/docs/examples/633c8a9fc57268979d8735c557705809.asciidoc b/docs/examples/633c8a9fc57268979d8735c557705809.asciidoc index dad960817..b81eb1701 100644 --- a/docs/examples/633c8a9fc57268979d8735c557705809.asciidoc +++ b/docs/examples/633c8a9fc57268979d8735c557705809.asciidoc @@ -1,4 +1,4 @@ -// mapping/types/keyword.asciidoc:219 +// mapping/types/keyword.asciidoc:220 [source, python] ---- diff --git a/docs/examples/63d1c07d22a3ca3b0ec6d950547c011c.asciidoc b/docs/examples/63d1c07d22a3ca3b0ec6d950547c011c.asciidoc index 22e894a4c..3112eff31 100644 --- a/docs/examples/63d1c07d22a3ca3b0ec6d950547c011c.asciidoc +++ b/docs/examples/63d1c07d22a3ca3b0ec6d950547c011c.asciidoc @@ -1,4 +1,4 @@ -// mapping/types/keyword.asciidoc:189 +// mapping/types/keyword.asciidoc:190 [source, python] ---- diff --git a/docs/examples/6dda348069f89ffb2379b3a281a24cc9.asciidoc b/docs/examples/6dda348069f89ffb2379b3a281a24cc9.asciidoc new file mode 100644 index 000000000..fd9eda50d --- /dev/null +++ b/docs/examples/6dda348069f89ffb2379b3a281a24cc9.asciidoc @@ -0,0 +1,17 @@ +// inference/put-inference.asciidoc:394 + +[source, python] +---- +resp = client.inference.put_model( + task_type="text_embedding", + inference_id="openai_embeddings", + body={ + "service": "openai", + "service_settings": { + "api_key": "", + "model_id": "text-embedding-ada-002", + }, + }, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc b/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc new file mode 100644 index 000000000..59c20f5d1 --- /dev/null +++ b/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc @@ -0,0 +1,10 @@ +// ml/trained-models/apis/update-trained-model-deployment.asciidoc:55 + +[source, python] +---- +resp = client.ml.update_trained_model_deployment( + model_id="elastic__distilbert-base-uncased-finetuned-conll03-english", + body={"number_of_allocations": 4}, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/77113c65e1755313183a8969233a5a07.asciidoc b/docs/examples/77113c65e1755313183a8969233a5a07.asciidoc index 846821791..e7be6a123 100644 --- a/docs/examples/77113c65e1755313183a8969233a5a07.asciidoc +++ b/docs/examples/77113c65e1755313183a8969233a5a07.asciidoc @@ -1,4 +1,4 @@ -// mapping/types/keyword.asciidoc:249 +// mapping/types/keyword.asciidoc:250 [source, python] ---- diff --git a/docs/examples/8e286a205a1f84f888a6d99f2620c80e.asciidoc b/docs/examples/8e286a205a1f84f888a6d99f2620c80e.asciidoc index 0d10bc179..ccd2e430b 100644 --- a/docs/examples/8e286a205a1f84f888a6d99f2620c80e.asciidoc +++ b/docs/examples/8e286a205a1f84f888a6d99f2620c80e.asciidoc @@ -1,4 +1,4 @@ -// setup/logging-config.asciidoc:235 +// setup/logging-config.asciidoc:242 [source, python] ---- diff --git a/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc new file mode 100644 index 000000000..6b6a5531b --- /dev/null +++ b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc @@ -0,0 +1,18 @@ +// inference/put-inference.asciidoc:253 + +[source, python] +---- +resp = client.inference.put_model( + task_type="text_embedding", + inference_id="cohere-embeddings", + body={ + "service": "cohere", + "service_settings": { + "api_key": "", + "model_id": "embed-english-light-v3.0", + "embedding_type": "byte", + }, + }, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc b/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc index e77b1eeae..79b43f6c1 100644 --- a/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc +++ b/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc @@ -1,4 +1,4 @@ -// inference/get-inference.asciidoc:68 +// inference/get-inference.asciidoc:69 [source, python] ---- diff --git a/docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc b/docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc deleted file mode 100644 index 1630cbc9d..000000000 --- a/docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc +++ /dev/null @@ -1,15 +0,0 @@ -// inference/put-inference.asciidoc:396 - -[source, python] ----- -resp = client.inference.put_model( - task_type="text_embedding", - inference_id="my_openai_embedding_model", - body={ - "service": "openai", - "service_settings": {"api_key": "api_key"}, - "task_settings": {"model": "text-embedding-ada-002"}, - }, -) -print(resp) ----- \ No newline at end of file diff --git a/docs/examples/4ea91a3ff42de540bb4c9ef268d607a6.asciidoc b/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc similarity index 79% rename from docs/examples/4ea91a3ff42de540bb4c9ef268d607a6.asciidoc rename to docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc index 9e9df674a..c9e868528 100644 --- a/docs/examples/4ea91a3ff42de540bb4c9ef268d607a6.asciidoc +++ b/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:301 +// inference/put-inference.asciidoc:300 [source, python] ---- @@ -8,7 +8,6 @@ resp = client.inference.put_model( body={ "service": "elser", "service_settings": {"num_allocations": 1, "num_threads": 1}, - "task_settings": {}, }, ) print(resp) diff --git a/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc b/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc index 87494924f..659204a42 100644 --- a/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc +++ b/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc @@ -1,4 +1,4 @@ -// search/search.asciidoc:945 +// search/search.asciidoc:956 [source, python] ---- diff --git a/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc b/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc index 8757d6710..3c44c5a60 100644 --- a/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc +++ b/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:341 +// inference/put-inference.asciidoc:339 [source, python] ---- diff --git a/docs/guide/release-notes.asciidoc b/docs/guide/release-notes.asciidoc index d13bd6d03..bcad88527 100644 --- a/docs/guide/release-notes.asciidoc +++ b/docs/guide/release-notes.asciidoc @@ -1,6 +1,7 @@ [[release-notes]] == Release notes +* <> * <> * <> * <> @@ -35,6 +36,18 @@ * <> * <> +[discrete] +[[rn-8-13-0]] +=== 8.13.0 (2024-03-22) + +- Added native OpenTelemetry support +- Added optional ``orjson`` (a fast, correct JSON library) serialization support +- Added the `text_strcuture.test_grok_pattern` API +- Added the `indices.resolve_cluster` API +- Renamed the `model_id` parameter to `inference_id` in the `inference` APIs +- Changed all `synonyms` APIs from **experimental** to **stable**. +- Fixed API key documentation + [discrete] [[rn-8-12-1]] === 8.12.1 (2024-02-22) diff --git a/elasticsearch/_version.py b/elasticsearch/_version.py index 347efbe06..43e7f92a8 100644 --- a/elasticsearch/_version.py +++ b/elasticsearch/_version.py @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -__versionstr__ = "8.12.1" +__versionstr__ = "8.13.0"