from fi.datasets import Datasetdataset = Dataset(fi_api_key="<your_api_key>", fi_secret_key="<your_api_secret>") # Optional, if you want to set the API key and secret key manually
Click here to learn how to access your API keys.
It’s recommended to set the API key and secret key as environment variables.
from fi.datasets import Dataset, DatasetConfig, ModelTypesfrom fi.datasets.models import Column, Row, Cell, DataTypeChoices, SourceChoicesimport uuid# Create a dataset configurationconfig = DatasetConfig( id=None, # Will be set by the server name="my_dataset", # Choose a unique name model_type=ModelTypes.GENERATIVE_LLM)# Initialize and create the datasetdataset = Dataset(dataset_config=config)dataset = dataset.create()