import PiClient from 'withpi';const client = new PiClient({ apiKey: 'My API Key',});const response = await client.search.embed({ batch: true, query: ['string'] });console.log(response);
Copy
[ [ 123 ]]
Search
Pi Embeddings
Creates embeddings of provided text input for Search applications.
Returns 256 dimensional embeddings with the same length as the input query parameter.
POST
/
search
/
embed
JavaScript
Copy
import PiClient from 'withpi';const client = new PiClient({ apiKey: 'My API Key',});const response = await client.search.embed({ batch: true, query: ['string'] });console.log(response);