Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/d003ee256d24aa6000bd9dbf1d608dc5.asciidoc
Normal file
23
docs/doc_examples/d003ee256d24aa6000bd9dbf1d608dc5.asciidoc
Normal file
@ -0,0 +1,23 @@
|
||||
// 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.ingest.putPipeline({
|
||||
id: "elser-v2-test",
|
||||
processors: [
|
||||
{
|
||||
inference: {
|
||||
model_id: ".elser_model_2",
|
||||
input_output: [
|
||||
{
|
||||
input_field: "content",
|
||||
output_field: "content_embedding",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user