Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/a3c8f474b0700711a356682f37e62b39.asciidoc
Normal file
23
docs/doc_examples/a3c8f474b0700711a356682f37e62b39.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.indices.create({
|
||||
index: "azure-ai-studio-embeddings",
|
||||
mappings: {
|
||||
properties: {
|
||||
content_embedding: {
|
||||
type: "dense_vector",
|
||||
dims: 1536,
|
||||
element_type: "float",
|
||||
similarity: "dot_product",
|
||||
},
|
||||
content: {
|
||||
type: "text",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user