Use Endpoints
Submit Question Embeddings
Submits a user question for processing
POST
/
v1
/
embeddings
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
model
string
requiredThe model name to use for processing the question
question
string
requiredThe user's question to be processed
storage_provider
string
requiredStorage where data is stored (e.g., 's3', 'gcs')
bucket_name
string
Name of the bucket for storing results
session
string
requiredSession name for the request
max_tokens
integer
default: 10Max output tokens for the response
system_prompt
string
default: Answer the question based only on the given content. Do not give explanations or examples. Do not continue generating more text after the answer.Additional system prompt for processing the user's question
role_arn
string
AWS IAM role ARN for S3 access
region
string
default: eu-west-2The region the bucket belongs to
return_output
boolean
default: falseBoolean indicating whether to return the output or not
input_json_file
string
The name of the input json file in your s3 bucket
structured_output
string
json schema for the response output
Response
200 - application/json
task_id
string
requiredThe task ID assigned to the submitted question