gen_ai_hub.evaluations.utils.file_utils
index
/home/jenkins/agent/workspace/ation_generative-ai-hub-sdk_main/gen_ai_hub/evaluations/utils/file_utils.py

 
Modules
       
json
pandas
uuid

 
Functions
       
load_config_file(file_path: Union[str, pathlib.Path], error_collector: gen_ai_hub.evaluations.helpers.collector.ValidationCollector) -> Union[Dict[str, Any], List[Dict[str, Any]], List]
Load config from local file path or Path object
read_local_csv_file(file_path: pathlib.Path, error_collector: gen_ai_hub.evaluations.helpers.collector.ValidationCollector) -> List[Dict[str, Any]]
reads csv and returns the data as df

 
Data
        Any = typing.Any
CSV_FILE_TYPE = 'csv'
Dict = typing.Dict
JSONL_FILE_TYPE = 'jsonl'
JSON_FILE_TYPE = 'json'
List = typing.List
SUPPORTED_FILE_TYPES = ['json', 'jsonl', 'csv']
Union = typing.Union
logger = <Logger gen_ai_evaluations_sdk (INFO)>