Collibra AI model Python integration
An AI Model is a statistical model that is trained on datasets in order to make predictions on new data. You can integrate AI/ML models in Collibra or manually create AI Model assets and link them to the relevant AI use cases.
To help you transfer the metadata related to your AI models to Collibra, adapt and use the following code in your integration applications. We use Python and the Collibra REST Import API for this example.
Prerequisites
- You have Python version 3.
- You have installed the requests module.
- You have created a programmatic user for API requests that has at least the AI Business User global role.
- You have obtained the ID of the AI Governance domain.
The ID of the AI Governance domain should be
00000000-0000-0000-0000-000000006023
.
Code sample
Metadata from your ML models are ingested as assets in Collibra. All AI Model assets, and the assets of child asset types, appear in the Assets drop-down list.
If you need to add more information that is important for your model registry, contact your Collibra administrator to expand the number of characteristics that you can add to the model asset type.
Additional resources
- Create your own Collibra REST API client: learn how to use the OpenApi Generator to create a Python REST API client.
- Read the AI Governance documentation.