Model Download API for CI Integration
Introduction
The Model Download API provides external access to retrieve download URLs for artifacts generated in Rasa Studio, facilitating CI/CD integration. Built with GraphQL, this API allows queries to request trained assistant models and associated input data in YAML format.
Requirements
- Required API Role
Model download urls
. See Authentication to learn how to access configuration. - Assistant API ID. See user guide for configuration for more details.
- Assistant Version Name. See user guide for training for more details.
Available APIs
ModelDownloadUrls
Query: Schema:
ModelDownloadUrlsInput
Input: Field | Description |
---|---|
assistantId | Unique identifier of the assistant. |
assistantVersionName | Optional version of the trained assistant. Default is latest . |
ModelDownloadUrlsOutput
Output: Field | Description |
---|---|
modelFileUrl | Url to download the model file model.tar.gz . |
modelInputUrl | Url to download the model input data in YAML format. |
Usage
The query can be used to fetch the download URLs for the trained model and the input data in YAML format for a assistant.
curl
Request
Example Request the Model Download API using e.g. curl
:
Example Response
The response will contain the download URLs for the trained model and the model input data.
Download files
Download the model and input data files using the URLs provided in the response.
The downloaded model file model.tar.gz
can be used to deploy the trained model to a Rasa server.
The downloaded model input data bot_config.tar.gz
contains the input data in YAML format:
data/flows.yml
data/nlu.yml
config.yml
credentials.yml
domain.yml
endpoints.yml