POST
/
search
/
query_to_passage
/
score
JavaScript
import PiClient from 'withpi';

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

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

console.log(response);
[
  123
]

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type number[].