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

21 lines
541 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: "google_vertex_ai_embeddings",
inference_config: {
service: "googlevertexai",
service_settings: {
service_account_json: "<service_account_json>",
model_id: "text-embedding-004",
location: "<location>",
project_id: "<project_id>",
},
},
});
console.log(response);
----