Authorization: Bearer ********************curl --location --request POST 'https://api.302.ai/v1/contextualizedembeddings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"inputs": [
["doc_1_chunk_1", "doc_1_chunk_2"],
["doc_2_chunk_1", "doc_2_chunk_2"]
],
"input_type": "document",
"model": "voyage-context-3"
}'{
"object": "list",
"data": [
{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [0.040455919, -0.017057089, -0.007927173, "...", 0.042205364],
"index": 0
},
{
"object": "embedding",
"embedding": [0.03946501, -0.015512259, -0.009809222, "...", 0.033990096],
"index": 1
}
],
"index": 0
},
{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [0.047289684, -0.042560715, -7.7669e-05, "...", 0.038691558],
"index": 0
},
{
"object": "embedding",
"embedding": [0.04198277, -0.036370102, -0.00352195, "...", 0.031879965],
"index": 1
}
],
"index": 1
},
],
"model": "voyage-context-3",
"usage": {
"total_tokens": 24
}
}