Auto-generated code for 8.15 (#2370)

This commit is contained in:
Elastic Machine
2024-09-30 20:37:38 +02:00
committed by GitHub
parent 7aca5cf652
commit 424cc94458
28 changed files with 701 additions and 17 deletions

View File

@ -0,0 +1,22 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.inference.put({
task_type: "sparse_embedding",
inference_id: "my-elser-endpoint",
inference_config: {
service: "elser",
service_settings: {
adaptive_allocations: {
enabled: true,
min_number_of_allocations: 3,
max_number_of_allocations: 10,
},
num_threads: 1,
},
},
});
console.log(response);
----