From 85be2a03f87851c5ee24b661edda7d942f132ad5 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 3 May 2024 17:43:43 +0400 Subject: [PATCH] Release 8.13.1 --- .../00fea15cbca83be9d5f1a024ff2ec708.asciidoc | 2 +- .../0e5db64154a722a5cbdb84b588ce2ce8.asciidoc | 2 +- .../10c3fe2265bb34964bd1005f9da66773.asciidoc | 2 +- .../13ecdf99114098c76b050397d9c3d4e6.asciidoc | 2 +- .../1aa91d3d48140d6367b6cabca8737b8f.asciidoc | 2 +- .../316cd43feb3b86396483903af1a048b1.asciidoc | 2 +- .../36063ff9a318dba7bb0be3a230655dc8.asciidoc | 2 +- .../3d1ff6097e2359f927c88c2ccdb36252.asciidoc | 7 ------- .../4e3414fc712b16311f9e433dd366f49d.asciidoc | 2 +- .../51b40610ae05730b4c6afd25647d7ae0.asciidoc | 2 +- .../5203560189ccab7122c03500147701ef.asciidoc | 2 +- .../59d736a4d064ed2013c7ead8e32e0998.asciidoc | 17 +++++++++++++++++ .../77b90f6787195767b6da60d8532714b4.asciidoc | 19 +++++++++++++++++++ .../8619bd17bbfe33490b1f277007f654db.asciidoc | 18 ++++++++++++++++++ .../8cd00a3aba7c3c158277bc032aac2830.asciidoc | 2 +- .../8e286a205a1f84f888a6d99f2620c80e.asciidoc | 2 +- .../9a02bd47c000a3d9a8911233c37c890f.asciidoc | 2 +- ...9a203aae3e1412d919546276fb52a5ca.asciidoc} | 7 +++---- .../9f16fca9813304e398ee052aa857dbcd.asciidoc | 17 +++++++++++++++++ .../a4a3c3cd09efa75168dab90105afb2e9.asciidoc | 2 +- .../a84ffbaa4ffa68b22f6fe42d3b4f8dd5.asciidoc | 2 +- .../ae9ccfaa146731ab9176df90670db1c2.asciidoc | 2 +- .../b45a8c6fc746e9c90fd181e69a605fad.asciidoc | 11 +++++++++++ .../ba59a3b9a0a2694704b2bf9c6ad4a8cf.asciidoc | 2 +- .../bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc | 2 +- .../c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc | 15 --------------- .../c9c396b94bb88098477e2b08b55a12ee.asciidoc | 2 +- ...cedb56a71cc743d80263ce352bb21720.asciidoc} | 3 +-- .../da3cecc36a7313385d32c7f52ccfb7e3.asciidoc | 2 +- .../e6b972611c0ec8ab4c240f33f323d85b.asciidoc | 2 +- .../ecc57597f6b791d1151ad79d9f4ce67b.asciidoc | 2 +- .../eec051555c8050d017d3fe38ea59e3a0.asciidoc | 2 +- .../eee6110831c08b9c1b3f56b24656e95b.asciidoc | 2 +- .../ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc | 2 +- .../f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc | 14 ++++++++++++++ docs/guide/release-notes.asciidoc | 9 +++++++++ elasticsearch/_version.py | 2 +- 37 files changed, 135 insertions(+), 54 deletions(-) delete mode 100644 docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc create mode 100644 docs/examples/59d736a4d064ed2013c7ead8e32e0998.asciidoc create mode 100644 docs/examples/77b90f6787195767b6da60d8532714b4.asciidoc create mode 100644 docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc rename docs/examples/{46884e00674f82e7a7bc8b418d1777de.asciidoc => 9a203aae3e1412d919546276fb52a5ca.asciidoc} (63%) create mode 100644 docs/examples/9f16fca9813304e398ee052aa857dbcd.asciidoc create mode 100644 docs/examples/b45a8c6fc746e9c90fd181e69a605fad.asciidoc delete mode 100644 docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc rename docs/examples/{4ea91a3ff42de540bb4c9ef268d607a6.asciidoc => cedb56a71cc743d80263ce352bb21720.asciidoc} (79%) create mode 100644 docs/examples/f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc diff --git a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc index e92d8e12d..4e63a4e90 100644 --- a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc +++ b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:276 +// inference/put-inference.asciidoc:381 [source, python] ---- diff --git a/docs/examples/0e5db64154a722a5cbdb84b588ce2ce8.asciidoc b/docs/examples/0e5db64154a722a5cbdb84b588ce2ce8.asciidoc index 5831d48ab..97c6ae00b 100644 --- a/docs/examples/0e5db64154a722a5cbdb84b588ce2ce8.asciidoc +++ b/docs/examples/0e5db64154a722a5cbdb84b588ce2ce8.asciidoc @@ -1,4 +1,4 @@ -// mapping/types/numeric.asciidoc:275 +// mapping/types/numeric.asciidoc:287 [source, python] ---- diff --git a/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc b/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc index 01acd4ce7..08c365b91 100644 --- a/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc +++ b/docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:371 +// inference/put-inference.asciidoc:488 [source, python] ---- diff --git a/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc b/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc index 5aeeb40da..f3d348b3e 100644 --- a/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc +++ b/docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc @@ -1,4 +1,4 @@ -// inference/post-inference.asciidoc:72 +// inference/post-inference.asciidoc:197 [source, python] ---- diff --git a/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc b/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc index c4553e246..7bc426db3 100644 --- a/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc +++ b/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc @@ -1,4 +1,4 @@ -// docs/bulk.asciidoc:634 +// docs/bulk.asciidoc:632 [source, python] ---- diff --git a/docs/examples/316cd43feb3b86396483903af1a048b1.asciidoc b/docs/examples/316cd43feb3b86396483903af1a048b1.asciidoc index 6d040bd6d..0641456c4 100644 --- a/docs/examples/316cd43feb3b86396483903af1a048b1.asciidoc +++ b/docs/examples/316cd43feb3b86396483903af1a048b1.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:781 +// aggregations/bucket/datehistogram-aggregation.asciidoc:782 [source, python] ---- diff --git a/docs/examples/36063ff9a318dba7bb0be3a230655dc8.asciidoc b/docs/examples/36063ff9a318dba7bb0be3a230655dc8.asciidoc index a6e093c17..1c8891952 100644 --- a/docs/examples/36063ff9a318dba7bb0be3a230655dc8.asciidoc +++ b/docs/examples/36063ff9a318dba7bb0be3a230655dc8.asciidoc @@ -1,4 +1,4 @@ -// mapping/types/numeric.asciidoc:247 +// mapping/types/numeric.asciidoc:259 [source, python] ---- diff --git a/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc b/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc deleted file mode 100644 index 4a576819a..000000000 --- a/docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc +++ /dev/null @@ -1,7 +0,0 @@ -// tab-widgets/api-call.asciidoc:13 - -[source, python] ----- -resp = client.info() -print(resp) ----- \ No newline at end of file diff --git a/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc b/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc index b963b5e43..eebe7e709 100644 --- a/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc +++ b/docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc @@ -1,4 +1,4 @@ -// inference/delete-inference.asciidoc:51 +// inference/delete-inference.asciidoc:55 [source, python] ---- diff --git a/docs/examples/51b40610ae05730b4c6afd25647d7ae0.asciidoc b/docs/examples/51b40610ae05730b4c6afd25647d7ae0.asciidoc index c662e2685..f5af5e526 100644 --- a/docs/examples/51b40610ae05730b4c6afd25647d7ae0.asciidoc +++ b/docs/examples/51b40610ae05730b4c6afd25647d7ae0.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:488 +// aggregations/bucket/datehistogram-aggregation.asciidoc:489 [source, python] ---- diff --git a/docs/examples/5203560189ccab7122c03500147701ef.asciidoc b/docs/examples/5203560189ccab7122c03500147701ef.asciidoc index 3e0285303..412284e48 100644 --- a/docs/examples/5203560189ccab7122c03500147701ef.asciidoc +++ b/docs/examples/5203560189ccab7122c03500147701ef.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:568 +// aggregations/bucket/datehistogram-aggregation.asciidoc:569 [source, python] ---- diff --git a/docs/examples/59d736a4d064ed2013c7ead8e32e0998.asciidoc b/docs/examples/59d736a4d064ed2013c7ead8e32e0998.asciidoc new file mode 100644 index 000000000..25a961d96 --- /dev/null +++ b/docs/examples/59d736a4d064ed2013c7ead8e32e0998.asciidoc @@ -0,0 +1,17 @@ +// inference/put-inference.asciidoc:529 + +[source, python] +---- +resp = client.inference.put_model( + task_type="completion", + inference_id="openai-completion", + body={ + "service": "openai", + "service_settings": { + "api_key": "", + "model_id": "gpt-3.5-turbo", + }, + }, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/77b90f6787195767b6da60d8532714b4.asciidoc b/docs/examples/77b90f6787195767b6da60d8532714b4.asciidoc new file mode 100644 index 000000000..4393f9458 --- /dev/null +++ b/docs/examples/77b90f6787195767b6da60d8532714b4.asciidoc @@ -0,0 +1,19 @@ +// inference/put-inference.asciidoc:552 + +[source, python] +---- +resp = client.inference.put_model( + task_type="text_embedding", + inference_id="azure_openai_embeddings", + body={ + "service": "azureopenai", + "service_settings": { + "api_key": "", + "resource_name": "", + "deployment_id": "", + "api_version": "2024-02-01", + }, + }, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc b/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc new file mode 100644 index 000000000..32ff8da77 --- /dev/null +++ b/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc @@ -0,0 +1,18 @@ +// inference/put-inference.asciidoc:353 + +[source, python] +---- +resp = client.inference.put_model( + task_type="rerank", + inference_id="cohere-rerank", + body={ + "service": "cohere", + "service_settings": { + "api_key": "", + "model_id": "rerank-english-v3.0", + }, + "task_settings": {"top_n": 10, "return_documents": True}, + }, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc b/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc index 639a269cc..452631e77 100644 --- a/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc +++ b/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc @@ -1,4 +1,4 @@ -// docs/bulk.asciidoc:612 +// docs/bulk.asciidoc:610 [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/9a02bd47c000a3d9a8911233c37c890f.asciidoc b/docs/examples/9a02bd47c000a3d9a8911233c37c890f.asciidoc index fd12e4bd9..d6793b366 100644 --- a/docs/examples/9a02bd47c000a3d9a8911233c37c890f.asciidoc +++ b/docs/examples/9a02bd47c000a3d9a8911233c37c890f.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:366 +// aggregations/bucket/datehistogram-aggregation.asciidoc:367 [source, python] ---- diff --git a/docs/examples/46884e00674f82e7a7bc8b418d1777de.asciidoc b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc similarity index 63% rename from docs/examples/46884e00674f82e7a7bc8b418d1777de.asciidoc rename to docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc index 16a745a9e..8f030467d 100644 --- a/docs/examples/46884e00674f82e7a7bc8b418d1777de.asciidoc +++ b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:252 +// inference/put-inference.asciidoc:335 [source, python] ---- @@ -9,10 +9,9 @@ resp = client.inference.put_model( "service": "cohere", "service_settings": { "api_key": "", - "model": "embed-english-light-v3.0", - "embedding_type": "int8", + "model_id": "embed-english-light-v3.0", + "embedding_type": "byte", }, - "task_settings": {}, }, ) print(resp) diff --git a/docs/examples/9f16fca9813304e398ee052aa857dbcd.asciidoc b/docs/examples/9f16fca9813304e398ee052aa857dbcd.asciidoc new file mode 100644 index 000000000..1d854a9c9 --- /dev/null +++ b/docs/examples/9f16fca9813304e398ee052aa857dbcd.asciidoc @@ -0,0 +1,17 @@ +// inference/put-inference.asciidoc:513 + +[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/a4a3c3cd09efa75168dab90105afb2e9.asciidoc b/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc index e77b1eeae..5f21ffc5e 100644 --- a/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc +++ b/docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc @@ -1,4 +1,4 @@ -// inference/get-inference.asciidoc:68 +// inference/get-inference.asciidoc:73 [source, python] ---- diff --git a/docs/examples/a84ffbaa4ffa68b22f6fe42d3b4f8dd5.asciidoc b/docs/examples/a84ffbaa4ffa68b22f6fe42d3b4f8dd5.asciidoc index 2bcfac3ae..37789b6fd 100644 --- a/docs/examples/a84ffbaa4ffa68b22f6fe42d3b4f8dd5.asciidoc +++ b/docs/examples/a84ffbaa4ffa68b22f6fe42d3b4f8dd5.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:588 +// aggregations/bucket/datehistogram-aggregation.asciidoc:589 [source, python] ---- diff --git a/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc b/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc index 72d9604b9..668510e72 100644 --- a/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc +++ b/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc @@ -1,4 +1,4 @@ -// docs/bulk.asciidoc:501 +// docs/bulk.asciidoc:499 [source, python] ---- diff --git a/docs/examples/b45a8c6fc746e9c90fd181e69a605fad.asciidoc b/docs/examples/b45a8c6fc746e9c90fd181e69a605fad.asciidoc new file mode 100644 index 000000000..8a1fc3fc3 --- /dev/null +++ b/docs/examples/b45a8c6fc746e9c90fd181e69a605fad.asciidoc @@ -0,0 +1,11 @@ +// inference/post-inference.asciidoc:102 + +[source, python] +---- +resp = client.inference.inference( + task_type="completion", + inference_id="openai_chat_completions", + body={"input": "What is Elastic?"}, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/examples/ba59a3b9a0a2694704b2bf9c6ad4a8cf.asciidoc b/docs/examples/ba59a3b9a0a2694704b2bf9c6ad4a8cf.asciidoc index 77b897af5..8622ad4b6 100644 --- a/docs/examples/ba59a3b9a0a2694704b2bf9c6ad4a8cf.asciidoc +++ b/docs/examples/ba59a3b9a0a2694704b2bf9c6ad4a8cf.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:610 +// aggregations/bucket/datehistogram-aggregation.asciidoc:611 [source, python] ---- diff --git a/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc b/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc index c1d524d1c..7d843b759 100644 --- a/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc +++ b/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc @@ -1,4 +1,4 @@ -// docs/bulk.asciidoc:713 +// docs/bulk.asciidoc:711 [source, python] ---- diff --git a/docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc b/docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc deleted file mode 100644 index aef5e10a8..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="openai_embeddings", - body={ - "service": "openai", - "service_settings": {"api_key": ""}, - "task_settings": {"model": "text-embedding-ada-002"}, - }, -) -print(resp) ----- \ No newline at end of file diff --git a/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc b/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc index a0950395e..f205a86e4 100644 --- a/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc +++ b/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc @@ -1,4 +1,4 @@ -// docs/bulk.asciidoc:766 +// docs/bulk.asciidoc:764 [source, python] ---- 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..2be37beca 100644 --- a/docs/examples/4ea91a3ff42de540bb4c9ef268d607a6.asciidoc +++ b/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:301 +// inference/put-inference.asciidoc:406 [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/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc b/docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc index 99cd507e8..5fe27c39e 100644 --- a/docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc +++ b/docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:815 +// aggregations/bucket/datehistogram-aggregation.asciidoc:816 [source, python] ---- diff --git a/docs/examples/e6b972611c0ec8ab4c240f33f323d85b.asciidoc b/docs/examples/e6b972611c0ec8ab4c240f33f323d85b.asciidoc index 8dac1cb20..a90bb7bfc 100644 --- a/docs/examples/e6b972611c0ec8ab4c240f33f323d85b.asciidoc +++ b/docs/examples/e6b972611c0ec8ab4c240f33f323d85b.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:417 +// aggregations/bucket/datehistogram-aggregation.asciidoc:418 [source, python] ---- diff --git a/docs/examples/ecc57597f6b791d1151ad79d9f4ce67b.asciidoc b/docs/examples/ecc57597f6b791d1151ad79d9f4ce67b.asciidoc index 415bcd506..483bfbae0 100644 --- a/docs/examples/ecc57597f6b791d1151ad79d9f4ce67b.asciidoc +++ b/docs/examples/ecc57597f6b791d1151ad79d9f4ce67b.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:642 +// aggregations/bucket/datehistogram-aggregation.asciidoc:643 [source, python] ---- diff --git a/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc b/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc index 659204a42..12c64a679 100644 --- a/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc +++ b/docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc @@ -1,4 +1,4 @@ -// search/search.asciidoc:956 +// search/search.asciidoc:907 [source, python] ---- diff --git a/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc b/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc index 8757d6710..286378a6b 100644 --- a/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc +++ b/docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc @@ -1,4 +1,4 @@ -// inference/put-inference.asciidoc:341 +// inference/put-inference.asciidoc:445 [source, python] ---- diff --git a/docs/examples/ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc b/docs/examples/ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc index 27719ab27..ea871d67d 100644 --- a/docs/examples/ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc +++ b/docs/examples/ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc @@ -1,4 +1,4 @@ -// aggregations/bucket/datehistogram-aggregation.asciidoc:698 +// aggregations/bucket/datehistogram-aggregation.asciidoc:699 [source, python] ---- diff --git a/docs/examples/f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc b/docs/examples/f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc new file mode 100644 index 000000000..89cd690dc --- /dev/null +++ b/docs/examples/f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc @@ -0,0 +1,14 @@ +// inference/post-inference.asciidoc:133 + +[source, python] +---- +resp = client.inference.inference( + task_type="rerank", + inference_id="cohere_rerank", + body={ + "input": ["luke", "like", "leia", "chewy", "r2d2", "star", "wars"], + "query": "star wars main character", + }, +) +print(resp) +---- \ No newline at end of file diff --git a/docs/guide/release-notes.asciidoc b/docs/guide/release-notes.asciidoc index bcad88527..a198f096d 100644 --- a/docs/guide/release-notes.asciidoc +++ b/docs/guide/release-notes.asciidoc @@ -1,6 +1,7 @@ [[release-notes]] == Release notes +* <> * <> * <> * <> @@ -36,6 +37,14 @@ * <> * <> +[discrete] +[[rn-8-13-1]] +=== 8.13.1 (2024-05-03) + +- Added ``force_synthetic_source`` to the Get API +- Added ``wait_for_completion`` to the Create trained model API +- Added ``typed_keys`` to the Query API key information API + [discrete] [[rn-8-13-0]] === 8.13.0 (2024-03-22) diff --git a/elasticsearch/_version.py b/elasticsearch/_version.py index 43e7f92a8..20c5eb394 100644 --- a/elasticsearch/_version.py +++ b/elasticsearch/_version.py @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -__versionstr__ = "8.13.0" +__versionstr__ = "8.13.1"