Files
elasticsearch-js/docs/doc_examples/7429b16221fe741fd31b0584786dd0b0.asciidoc
2024-09-03 09:36:33 -05:00

17 lines
435 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.inference({
task_type: "text_embedding",
inference_id: "my-cohere-endpoint",
input:
"The sky above the port was the color of television tuned to a dead channel.",
task_settings: {
input_type: "ingest",
},
});
console.log(response);
----