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

20 lines
463 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: "cohere_embeddings",
inference_config: {
service: "cohere",
service_settings: {
api_key: "<api_key>",
model_id: "embed-english-v3.0",
embedding_type: "byte",
},
},
});
console.log(response);
----