Skip to main content
POST
/
search
/
embed
JavaScript
import PiClient from 'withpi';

const client = new PiClient({
  apiKey: 'My API Key',
});

const response = await client.search.embed({ query: ['string'] });

console.log(response);
[
  [
    123
  ]
]

Authorizations

x-api-key
string
header
required

Body

application/json
query
string[]
required

List of queries or documents to embed

Response

Successful Response

The response is of type number[][].