Deploying third-party NLP models and testing via the UI
In the previous recipe, we learned how to use a trained ML model for inference. With the Elastic Stack, we can extend the application of trained models to Natural Language Processing (NLP) use cases. In this recipe, we will learn how to deploy a third-party NLP model and test it.
Getting ready
Ensure you have Python 3.11 or later installed on your system and an Elastic 8.x deployment running. We recommend installing pip
for easy package management, which you can do by following the instructions at https://pip.pypa.io.
For this recipe, you will need the Cloud ID as well as the username and password for basic authentication to your Elastic Cloud deployment. Recall that we saved the password for our default user, elastic, in the Deploying the Elastic Stack on Elastic Cloud recipe in Chapter 1. You can find instructions for locating your Cloud ID in the management console in that same recipe.
The snippets of this recipe...