Deployment Steps
Intelligent Virtual Assistant
This section will walk through an end-to-end workflow deployment using the example software stack components previously described.
Ensure that the previous Cloud Native Software Requirements section has been completed prior to proceeding with the deployment steps.
Complete the Audio Transcription Training Pipeline section. The steps for the Intelligent Virtual Assistant Training workflow are identical.
SSH into the training VMI (this is the VMI without Cloud Native Stack or Kubernetes installed).
Ensure the NGC CLI is configured.
ngc config set
-
ngc registry resource download-version "nvaie/intelligent-virtual-assistant-training:0.1"
Switch to the training directory.
cd intelligent-virtual-assistant-training_v0.1/
Make the set-up script executable.
chmod +x ./run.sh
Run the setup script.
sudo ./run.sh <YOUR-API-KEY>
NoteThe installer may fail if dpkg does not run cleanly or entirely during the instance provisioning. If this occurs, run the following command to resolve the issue, then retry the installation.
sudo dpkg --configure -a
From a browser, navigate to the Jupyter Notebook URL displayed once the setup script is completed. It is part of the CUSTOM STATES output, e.g.
RUN: { "services": [ { "name": "notebook", "url":"**http://<External-IP>/notebook**" } ]}
Select and run through the Jupyter Notebooks, starting with the Welcome Notebook.
The Training Deployment steps are complete
SSH into the inference/deployment VMI.
Ensure the NGC CLI is configured.
ngc config set
-
ngc registry resource download-version "nvaie/intelligent-virtual-assistant-deployment:0.1"
Switch to the transcription Helm chart directory.
cd intelligent-virtual-assistant-deployment_v0.1/helm_charts
Install Haystack Helm chart.
helm -n cciva install haystack haystack --create-namespace
Note down the haystack url from the output of the Helm install.
Install the Rasa Helm chart.
helm -n cciva install rasa rasa/ --set -ngcCredentials.password=<NGC_KEY> --set haystackUrl=<HAYSTACK_URL>
Note down the Rasa URL from the Helm chart output.
ImportantIf you have already installed the Audio Transcription Riva Helm Chart, ensure you delete it before proceeding if you only have a single GPU attached to your VMI.
cd ~/audio-transcription-deployment_v0.1/helm_charts helm del transcription -n riva
Install Riva via Helm.
helm -n cciva install riva riva/ --set ngcCredentials.password=<NGC_KEY> --set workflow.keycloak.keycloakrealm=<WORKFLOW_REALM> --create-namespace --set haystackUrl=<HAYSTACK_URL> --set rasaUrl=<RASA_URL>
Reference the output from the Helm install and launch the Jupyter Notebook from a browser once the transcription pods are running.
Validate that all of the iva pods are running
kubectl get pods -n cciva
NoteIt can take about half an hour for the Riva pod to initialize
Once all pods are running, access the Jupyter Notebook for instructions to run the workflow