Start Optimization
POST/v2/prompts/opt/:projectid/
Start Optimization
Request
Path Parameters
projectid Projectidrequired
- application/json
Body
required
- MOD1
name
object
anyOf
string
llm Llm (string)required
dataset Datasetrequired
experiment
object
anyOf
task_description Task Description (string)required
metric Metric (string)required
prompt
object
required
system System (string)required
user
object
required
prompt Prompt (string)required
description Description (string)required
few_shot object[]
Default value: ``
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
id Id (string)required
name Name (string)required
{
"id": "string",
"name": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...