Module Contents#

class relevanceai.client.helpers.Credentials, dataset_id: str, fields: Optional[list] = None, image_fields: Optional[List[str]] = None, audio_fields: Optional[List[str]] = None, text_fields: Optional[List[str]] = None, highlight_fields: Optional[Dict[str, list]] = None, **kwargs)#


to_dataset(self, child_dataset_id: str, filters: list = None, filter_condition: Callable = None, chunksize: int = 20)#

to_dataset takes a list of filters and a filter condition and creates a new dataset with the filtered documents


from relevanceai import Client
client = Client()
  • child_dataset_id (str) – The id of the dataset you want to create.

  • filters (list) – List of possible filters

  • filter_condition (Callable) – List of possible filter conditions

  • chunksize (int, optional) – The number of documents to be processed at a time.