(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
16 lines
406 B
Plaintext
16 lines
406 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.transport.request({
|
|
method: "POST",
|
|
path: "/_inference/sparse_embedding/my-elser-model",
|
|
body: {
|
|
input:
|
|
"The sky above the port was the color of television tuned to a dead channel.",
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|