20 lines
477 B
Plaintext
20 lines
477 B
Plaintext
// 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: "rerank",
|
|
inference_id: "my-msmarco-minilm-model",
|
|
inference_config: {
|
|
service: "elasticsearch",
|
|
service_settings: {
|
|
num_allocations: 1,
|
|
num_threads: 1,
|
|
model_id: "cross-encoder__ms-marco-minilm-l-6-v2",
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|