Skip to main content

Datasets

A Dataset accepts the following parameters:
  • name (str): The name of the dataset
  • description (str): A description of what the dataset is
  • embeddig_api_key (str): the API key for generating embeddings
  • embeddig type (str): For now, only supports OPENAI
  • model_name (str): The name of the model to use for generating embeddings
Embedding type and model name are only required if you want to use online optimization, or you want to use the search_similar endpoint. Example of how to create a dataset:

Dataset Items

A Dataset Item accepts the following parameters:
  • dataset (int): The id of the dataset this item belongs to
  • inputs (dict): The input data for the dataset item
  • outputs (dict): The output data for the dataset item
Example of how to create a dataset item: