Skip to main content

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

Body

required

    files binary[]required

Responses

Successful Response

Schema

    id Id (string)required
    name Name (string)required
Loading...