How to configure your Giskard application: Email notifications and API tokens
To compute local explanations of textual features, Giskard uses the LIME algorithm. LIME creates
n_samplesof distorted texts to compute the explanation. When
n_samplesis high, the provided explanation is better, but the computation time will be higher as well.
By default, n_samples is equal to 500. To change it, you need to change the project settings. To do that, click on Edit in the top right corner of your screen (see the image below)
Giskard can send email notifications about different events like inspector feedbacks or user invitation to the platform.
To configure this feature SMTP server credentials should be provided at startup through environment variables
To reinforce security there's no default value of the secret key, whenever the backend starts it generates one automatically. However it means that users' sessions are invalidated and they have to re-login.
For production instances, it's preferred to keep user sessions alive no matter whether the server was rebooted or not. In this case, the JWT secret can be set from the outside by specifying
GISKARD_JWT_SECRETenvironment variable. Its value should contain a base64 encoded bytes sequence of at least 128 bytes.
The following script can generate and store a secret key of 256 bytes:
# for zsh
echo export GISKARD_JWT_SECRET=`openssl rand -base64 256 | tr -d '\n'` >> ~/.zshrc
# for bash
echo export GISKARD_JWT_SECRET=`openssl rand -base64 256 | tr -d '\n'` >> ~/.bashrc