Skip to main content
POST
/
ai
/
prediction
/
embedding
/
text-encoder
English language model text encoder
import requests

url = "https://application_id.applications.lucidworks.com/ai/prediction/embedding/text-encoder"

payload = {
    "batch": [{ "text": "<string>" }],
    "useCaseConfig": { "dataType": "query or passage" }
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

Headers

Authorization: Bearer ACCESS_TOKEN
string

The authentication and authorization access token.

Content-Type
string

application/json

Example:

"application/json"

Body

application/json
batch
object[]

The batch of key:value pairs used as inputs in the prediction. Up to 32 inputs per request are allowed.

Maximum array length: 32
useCaseConfig
UseCaseConfigKeywordEmbedding · object

Response

200 - application/json

OK

predictions
object[]