We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f3d8d commit 8750b4aCopy full SHA for 8750b4a
1 file changed
examples/cohere/example.js
@@ -19,7 +19,9 @@ async function fetchEmbeddings(texts, inputType) {
19
inputType: inputType,
20
embeddingTypes: ['ubinary']
21
});
22
- return response.embeddings.ubinary.map((e) => e.map((v) => v.toString(2).padStart(8, '0')).join(''));
+ return response.embeddings.ubinary.map((e) => {
23
+ return e.map((v) => v.toString(2).padStart(8, '0')).join('')
24
+ });
25
}
26
27
const input = [
0 commit comments