Skip to content

Commit

Permalink
Release 8.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed May 3, 2024
1 parent 8c476aa commit 85be2a0
Show file tree
Hide file tree
Showing 37 changed files with 135 additions and 54 deletions.
2 changes: 1 addition & 1 deletion docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/put-inference.asciidoc:276
// inference/put-inference.asciidoc:381

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0e5db64154a722a5cbdb84b588ce2ce8.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// mapping/types/numeric.asciidoc:275
// mapping/types/numeric.asciidoc:287

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/put-inference.asciidoc:371
// inference/put-inference.asciidoc:488

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/post-inference.asciidoc:72
// inference/post-inference.asciidoc:197

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// docs/bulk.asciidoc:634
// docs/bulk.asciidoc:632

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/316cd43feb3b86396483903af1a048b1.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:781
// aggregations/bucket/datehistogram-aggregation.asciidoc:782

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/36063ff9a318dba7bb0be3a230655dc8.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// mapping/types/numeric.asciidoc:247
// mapping/types/numeric.asciidoc:259

[source, python]
----
Expand Down
7 changes: 0 additions & 7 deletions docs/examples/3d1ff6097e2359f927c88c2ccdb36252.asciidoc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/4e3414fc712b16311f9e433dd366f49d.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/delete-inference.asciidoc:51
// inference/delete-inference.asciidoc:55

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/51b40610ae05730b4c6afd25647d7ae0.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:488
// aggregations/bucket/datehistogram-aggregation.asciidoc:489

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/5203560189ccab7122c03500147701ef.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:568
// aggregations/bucket/datehistogram-aggregation.asciidoc:569

[source, python]
----
Expand Down
17 changes: 17 additions & 0 deletions docs/examples/59d736a4d064ed2013c7ead8e32e0998.asciidoc
Original file line number Diff line number Diff line change
@@ -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": "<api_key>",
"model_id": "gpt-3.5-turbo",
},
},
)
print(resp)
----
19 changes: 19 additions & 0 deletions docs/examples/77b90f6787195767b6da60d8532714b4.asciidoc
Original file line number Diff line number Diff line change
@@ -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": "<api_key>",
"resource_name": "<resource_name>",
"deployment_id": "<deployment_id>",
"api_version": "2024-02-01",
},
},
)
print(resp)
----
18 changes: 18 additions & 0 deletions docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc
Original file line number Diff line number Diff line change
@@ -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": "<API-KEY>",
"model_id": "rerank-english-v3.0",
},
"task_settings": {"top_n": 10, "return_documents": True},
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// docs/bulk.asciidoc:612
// docs/bulk.asciidoc:610

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/8e286a205a1f84f888a6d99f2620c80e.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// setup/logging-config.asciidoc:235
// setup/logging-config.asciidoc:242

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/9a02bd47c000a3d9a8911233c37c890f.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:366
// aggregations/bucket/datehistogram-aggregation.asciidoc:367

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/put-inference.asciidoc:252
// inference/put-inference.asciidoc:335

[source, python]
----
Expand All @@ -9,10 +9,9 @@ resp = client.inference.put_model(
"service": "cohere",
"service_settings": {
"api_key": "<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)
Expand Down
17 changes: 17 additions & 0 deletions docs/examples/9f16fca9813304e398ee052aa857dbcd.asciidoc
Original file line number Diff line number Diff line change
@@ -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": "<api_key>",
"model_id": "text-embedding-ada-002",
},
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/a4a3c3cd09efa75168dab90105afb2e9.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/get-inference.asciidoc:68
// inference/get-inference.asciidoc:73

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/a84ffbaa4ffa68b22f6fe42d3b4f8dd5.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:588
// aggregations/bucket/datehistogram-aggregation.asciidoc:589

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// docs/bulk.asciidoc:501
// docs/bulk.asciidoc:499

[source, python]
----
Expand Down
11 changes: 11 additions & 0 deletions docs/examples/b45a8c6fc746e9c90fd181e69a605fad.asciidoc
Original file line number Diff line number Diff line change
@@ -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)
----
2 changes: 1 addition & 1 deletion docs/examples/ba59a3b9a0a2694704b2bf9c6ad4a8cf.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:610
// aggregations/bucket/datehistogram-aggregation.asciidoc:611

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// docs/bulk.asciidoc:713
// docs/bulk.asciidoc:711

[source, python]
----
Expand Down
15 changes: 0 additions & 15 deletions docs/examples/c0f4cbcb104747f38acdbc9a30bd13bf.asciidoc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// docs/bulk.asciidoc:766
// docs/bulk.asciidoc:764

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/put-inference.asciidoc:301
// inference/put-inference.asciidoc:406

[source, python]
----
Expand All @@ -8,7 +8,6 @@ resp = client.inference.put_model(
body={
"service": "elser",
"service_settings": {"num_allocations": 1, "num_threads": 1},
"task_settings": {},
},
)
print(resp)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:815
// aggregations/bucket/datehistogram-aggregation.asciidoc:816

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/e6b972611c0ec8ab4c240f33f323d85b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:417
// aggregations/bucket/datehistogram-aggregation.asciidoc:418

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ecc57597f6b791d1151ad79d9f4ce67b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:642
// aggregations/bucket/datehistogram-aggregation.asciidoc:643

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/eec051555c8050d017d3fe38ea59e3a0.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// search/search.asciidoc:956
// search/search.asciidoc:907

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/eee6110831c08b9c1b3f56b24656e95b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// inference/put-inference.asciidoc:341
// inference/put-inference.asciidoc:445

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ef779b87b3b0fb6e6bae9c8875e3a1cf.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// aggregations/bucket/datehistogram-aggregation.asciidoc:698
// aggregations/bucket/datehistogram-aggregation.asciidoc:699

[source, python]
----
Expand Down
14 changes: 14 additions & 0 deletions docs/examples/f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc
Original file line number Diff line number Diff line change
@@ -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)
----
9 changes: 9 additions & 0 deletions docs/guide/release-notes.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[[release-notes]]
== Release notes

* <<rn-8-13-1>>
* <<rn-8-13-0>>
* <<rn-8-12-1>>
* <<rn-8-12-0>>
Expand Down Expand Up @@ -36,6 +37,14 @@
* <<rn-8-1-0>>
* <<rn-8-0-0>>

[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)
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# specific language governing permissions and limitations
# under the License.

__versionstr__ = "8.13.0"
__versionstr__ = "8.13.1"

0 comments on commit 85be2a0

Please sign in to comment.