Setup: Python SDK Installation & API Key Retrieval
Install the Python SDK in your Development Environment
pip install deepchecks-llm-client
Generate an API Key (via the UI)
We recommend that you save this key in a secret manager or as an environment variable with the name DEEPCHECKS_API_KEY and retrieve it from there.
os.environ["DEEPCHECKS_API_KEY"] = "key here"
SageMaker Partner AI Apps Usage
SageMaker users, need to add the [sagemaker] extras when installing the deepchecks SDK
pip install deepchecks-llm-client[sagemaker]
And set those env variables (values need to be obtain from SageMaker marketplace)
os.environ["AWS_PARTNER_APP_AUTH"] = "True"
os.environ["AWS_PARTNER_APP_ARN"] = "arn:aws:sagemaker:xxx"
os.environ["AWS_PARTNER_APP_URL"] = "https://xxx.mlapp.sagemaker.aws"
os.environ["DEEPCHECKS_API_KEY"] = "key here"
Updated 11 days ago