New Base Rag Dataset
POST/v2/projects/:project_id/synth/rag/
Create a new RAG (Retrieved Augmented Generation) synthetic dataset.
Parameters:
- project_id (str): The ID of the project associated with the dataset.
- samples (int): The number of samples to generate for the dataset.
- files (List[UploadFile]): The list of uploaded files for dataset generation.
- name (Optional[str], optional): The name of the dataset. If not provided, a random name will be generated. Defaults to None.
Returns:
- schemas.NamedObjIdentifier: An object containing the ID and name of the created dataset.
Raises:
- HTTPException: If the number of samples is less than 1 or if the user's usage limit is exceeded.
Request
Path Parameters
project_id Project Idrequired
Query Parameters
samples Samplesrequired
name any
- multipart/form-data
Body
required
files binary[]required
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...