relevanceai.config
Configuration Settings
Module Contents
Classes
Set and change configuration settings |
Attributes
- relevanceai.config.PATH
- relevanceai.config.CONFIG_PATH
- class relevanceai.config.Config
Bases:
doc_utils.doc_utils.DocUtilsSet and change configuration settings
- Retries - Set the behaviour of retries for failed responses from the API
number_of_retries - Number of retries to attempt
seconds_between_retries - Seconds to wait between retries
- Logging - Set the behaviour of logging
enable_logging - Whether to log
log_to_file - Whether to log to file
log_file_name - The name of the file to log to, if logging to file
logging_level - Minimum level to log
- Upload - Set the behaviour of uploads to RelevanceAI
target_chunk_mb - Maximum upload size per request
- API - Set the behaviour of API requests
base_url - The base url to access
output_format - The format of API responses
Dashboard - URLS to various things
- _read_config(self, config_path)
Set up custom config by reading in a file
- Parameters
config_path (string) – Path to config
- property options(self)
View all current config settings
- get_option(self, option)
View current config settings
- Parameters
option (string) – Setting key
- set_option(self, option, value)
Change a config settings
- Parameters
option (string) – Setting key
value (string) – New setting
- reset_to_default(self)
Reset config to default
- static _create_default()
- __getitem__(self, key)
Get the config using client.config[“api.base_url”]
- relevanceai.config.CONFIG