Files
elasticsearch-js/docs/doc_examples/b4693f2aa9fa65db04ab2499355c54fc.asciidoc
2024-07-29 17:10:05 -05:00

23 lines
505 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.search({
index: "cohere-embeddings",
knn: {
field: "content_embedding",
query_vector_builder: {
text_embedding: {
model_id: "cohere_embeddings",
model_text: "Muscles in human body",
},
},
k: 10,
num_candidates: 100,
},
_source: ["id", "content"],
});
console.log(response);
----