Image generated with DALL.E 3
Easy setup template with basic examples of using Azure's OpenAI Service with the OpenAI API and LangChain
- Set up your virtual env with all the required dependencies
poetry install
- Set your environment variables in a file called
.env
(see.env.example
) - Create a resource and deploy a model using Azure OpenAI
Note: Whe using notebooks, make sure you activate the correct poetry environment. You can set your Python kernel to the value that gets returned when you run
poetry run which python
.
- Browse the example notebooks in
notebooks/
- https://python.langchain.com/docs/integrations/chat/azure_chat_openai
- https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/
- https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal
- https://learn.microsoft.com/en-us/azure/cognitive-services/openai/quickstart?pivots=programming-language-python&tabs=bash
- https://learn.microsoft.com/en-us/azure/cognitive-services/openai/
- https://learn.microsoft.com/en-us/legal/cognitive-services/openai/transparency-note?context=%2Fazure%2Fcognitive-services%2Fopenai%2Fcontext%2Fcontext&tabs=text
- https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/modelshttps://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/models