Files
elasticsearch-js/docs/doc_examples/9cbb097e5498a9fde39e3b1d3b62a4d2.asciidoc
2024-07-29 17:10:05 -05:00

22 lines
461 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.ml.inferTrainedModel({
model_id: "model2",
docs: [
{
text_field: "This is a very happy person",
},
],
inference_config: {
zero_shot_classification: {
labels: ["glad", "sad", "bad", "rad"],
multi_label: false,
},
},
});
console.log(response);
----