The NVIDIA Riva demo application illustrates how a chatbot and voicebot configuration can make use of different technologies in different scenarios for NLU/P and dialog state management.
This demo application incorporates two very different approaches to dialog state management, in making use of both Google Dialogflow and Rasa Machine Learning stories. In the case of Rasa the NLU portion can vest in Riva or Rasa.
Hence this illustrates how the best of breed can be employed to constitute a conversational AI solution. And it also highlights the flexibility of the Riva framework.
NVIDIA Riva, Rasa & Google Dialogflow
NVIDIA is busy developing Riva Studio which will help in building applications such as chatbots, virtual assistants and multimodal virtual assistants that leverage Riva skills.
This eludes to the fact that NVIDIA will have a skills approach, like Microsoft, IBM etc. Looking at the demo examples, it could stand NVIDIA in good stead to have a more disparate approach in dialog state management.
I have written in the past how a Riva dialog state management environment might look.
In general, Chatbots have four pillars:
- Intents (NLU)
- Entities (NLU)
- Dialog State Management
- Script (NLG) Management
Points 1 & 2, and 3 & 4 are usually tightly coupled. In general these four points are often seen as necessarily combined in one framework, from one vendor.
For a Voicebot two additional technologies need to be added:
- Speech To Text (Advanced Speech Recognition, STT)
- Text To Speech (Speech Synthesis, TTS).
As it stands, NVIDIA Riva have the following technologies from a Conversational AI perspective: TTS, STT, NLP & NLU. The element which is currently not part of the Riva offering is dialog state development and management.
The NVIDIA Riva demo application with Google Dialogflow makes use of Dialogflow’s NLU and Dialog State Management. This approach is in stark contrast to the Rasa demo, where the dialog is developed vastly differently.
The assistant making use of Rasa, demonstrates the integration of Rasa and the Riva Speech Service in the form of a weather chatbot web application.
This demo application is available in two configurations:
Configuration 1: Riva ASR + Riva TTS + Riva NLP + Rasa dialog manager
This shows how NVIDIA Riva can be used to extend a Rasa chatbot as a voicebot making use of Riva TTS & STT.
Added to this, the full functionality of Riva can be employed, and only Rasa leveraged for the Dialog Management.
Configuration 2: Riva ASR + Riva TTS + Rasa NLU + Rasa dialog manager
Hence it is clear that different components can be combined for the best suited solution, existing implementations can also be leveraged by Riva.
Riva & Google Dialogflow
This Virtual Assistant, making use of Google Dialogflow shows the integration of Google Dialogflow and Riva Speech Services in the form of a weather chatbot web application.
This demo shows Riva being used for ASR and TTS and Google Dialogflow for NLP and Dialog State Management (DM).
The integration uses the native API support of Google Dialogflow and gRPC support in Riva.
The Weatherbot Client coordinates the workflow with Riva Services and Dialogflow, then interacts with the end-user via a web UI.
There are three primary parts to this solution; Riva AI Services, Dialogflow Weatherbot, and the Weatherbot Client application.
After installing Riva, some work is required on the Google side.
Enable the API and save the connection credentials. Enabling the Dialogflow API.
Follow the Set up Authentication instructions. When done, run the command and use the service account key file in your environment step in the Riva Samples container.
Click the Setting button next to the agent name in the Dialogflow console.
Under the Export and Import tab, choose Restore From ZIP and upload the zipped folder from your host.
<Path to riva-dialogflow-va-temp>/dialogflow-weatherbot/dialogflow-weatherbot.zip
This will load the Dialogflow application within the Dialogflow Essentials workspace.
A key next step is to add the integration under Fulfillment. After opening the Fulfillment section, enable the Inline Editor in the Dialogflow console. Then paste the code supplied in the fulfillment folder.
According to the NVIDIA documentation, billing is not required. However, without billing activated, Fulfillment cannot be used.
After activating the environment, navigate to the chatbot client folder and start the chatbot web server.
Open the web UI at:
The interface giving a valid error stating the Dialogflow API could not be called, which is expected with Fulfillment not configured.
The easiest way to access the web interface is to make use of SSH tunneling. When the chatbot web server is started in the SSH window, the port is displayed. Use this port to setup a SSH tunnel to access the URL via a browser remotely.
The positives are overwhelming…
- Use can be made of any compatible approach to Dialog State Management which is well illustrated by the demo applications. NVIDIA is not tied, currently, to a specific methodology.
- Implementations can be cloud, or local/edge.
- Riva speaks to mission critical, industrial strength cognitive services & Conversational AI.
- A new framework for high-performance ASR, STT and NLU.
- Developers have access to transfer learning and the leveraging the investment made by NVIDIA.
- The NVIDIA GPU environment addresses mission critical requirements, where latency can be negated.
- Clear roadmap for Riva in terms of the near future and imminent features.
- Riva addresses requirements for ambient ubiquitous interfaces.
- Riva Demo applications from NVIDIA illustrates the flexibility of Riva. Accommodating different dialog state approaches. This can become their strong point, flexibility on an element where there is disparate approaches.
- Access, development and deployment seem daunting and the framework appears complicated. In this article I wanted to debunk access apprehensions. However, production deployment will most certainty be complex.
- Most probably for a production environment specific hardware considerations will be paramount; especially where cloud/connectivity latency cannot be tolerated.
The services available now via Riva are:
- Speech recognition trained on thousands of hours of speech data with stream or batch mode.
- Speech synthesis available in batch and streaming mode.
- NLU API’s with a host of services.
As stated before, the advent of Riva will surely be a jolt to the current marketplace, especially with imbedded conversational AI solutions.
The freedom of installation and the open architecture will stand NVIDIA in good stead. As noted, production architecture and deployment will demand careful consideration.
Subscribe to my newsletter.
NLP/NLU, Chatbots, Voice, Conversational UI/UX, CX Designer, Developer, Ubiquitous User Interfaces, Ambient…
Cobus Greyling - Medium
Read writing from Cobus Greyling on Medium. NLP/NLU, Chatbots, Voice, Conversational UI/UX, CX Designer, Developer…
NVIDIA Riva Documentation
NVIDIA Deep Learning Riva Documentation - Last updated November 10, 2021 - Send Feedback - NVIDIA Riva Speech Skills…
NVIDIA Jarvis Has Been Renamed To NVIDIA Riva
How To Get Started With NVIDIA Riva For Conversational AI Services
Here Are The NVIDIA Riva Demo Applications
And What’s Available In Jupyter Notebooks
NVIDIA Riva Virtual Assistant With Rasa
Rasa & Riva Compliment Each Other Extremely Well
How Might NVIDIA Riva Dialog Management Look?
And What Approach Will Play To The Strengths Of Riva?
Launching NVIDIA Riva Notebooks For Language AI Services
And How To Get You Started…