Files
elasticsearch-js/docs/doc_examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc
2024-09-03 09:36:52 -05:00

20 lines
473 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: "text_embedding",
inference_id: "my-msmarco-minilm-model",
inference_config: {
service: "elasticsearch",
service_settings: {
num_allocations: 1,
num_threads: 1,
model_id: "msmarco-MiniLM-L12-cos-v5",
},
},
});
console.log(response);
----