curl --request POST \
--url https://api.pawa-ai.com/v1/vectors/embedding \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "pawa-embeddings-v1-20241001",
"sentences": [
"Hello world",
"How are you?"
],
"lang": "multi"
}
'{
"success": true,
"message": "Embeddings created successfully",
"data": {
"embeddings": [
[
0.0047908169,
-0.0000800654,
-0.0000212658,
0.0144227119,
0.0173993539,
-0.0002167973
],
[
0.0047908169,
-0.0000800654,
-0.0000212658,
0.0144227119,
0.0173993539,
-0.0002167973
]
]
}
}This endpoint used to create new custom embeddings for the given input text using the specified model.
curl --request POST \
--url https://api.pawa-ai.com/v1/vectors/embedding \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "pawa-embeddings-v1-20241001",
"sentences": [
"Hello world",
"How are you?"
],
"lang": "multi"
}
'{
"success": true,
"message": "Embeddings created successfully",
"data": {
"embeddings": [
[
0.0047908169,
-0.0000800654,
-0.0000212658,
0.0144227119,
0.0173993539,
-0.0002167973
],
[
0.0047908169,
-0.0000800654,
-0.0000212658,
0.0144227119,
0.0173993539,
-0.0002167973
]
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The model for the embedding request
pawa-embeddings-v1-20241001 "pawa-embeddings-v1-20241001"
A list of sentences to embed
["Hello world", "How are you?"]The model for the embedding request
Embeddings created successfully
true
"Embeddings created successfully"