Technical requirements
The following are the technical prerequisites of this chapter:
- An Azure subscription, which you can create for free here: https://azure.microsoft.com/free/cognitive-services.
- Access to Azure OpenAI in the Azure subscription. Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at https://aka.ms/oai/access.
- Python 3.7.1 or a later version.
- The following Python libraries:
Openai
,langchain,requests
,json
,os
,pandas
,numpy
,streamlit
,tiktoken
, andmatplotlib
. - An Azure OpenAI Service resource with a model deployed. In my case, I deployed an instance called
test1
withtext-davinci-002
associated.
All the code shown in this chapter, as well as the scripts used for preprocessing and utils
, are available at the book’s GitHub repository: