From the course: Azure OpenAI: Generative AI Models and How to Use Them
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
How to use embeddings for clustering - Azure OpenAI Service Tutorial
From the course: Azure OpenAI: Generative AI Models and How to Use Them
How to use embeddings for clustering
- [Instructor] Let's go into an example of how to use embeddings for semantic search. Instead of going to the Azure OpenAI Studio, we will go straight into some codes, because embeddings is very technical. So, what you see here is a Jupyter Notebook. This is a way of programming Python code but in an interactive way. So, the first thing we will need to do is import some libraries, so we'll just quickly execute that, and then, we need to set up the configuration of our OpenAI service. You will notice that our API type is Azure, because we're connecting to the Azure OpenAI services, and we're not connecting to the OpenAI services, so that's therefore Azure. Then, we need to configure our OpenAI key and our resource endpoint and the version. Next step is that we're going to read some data. So, I have a CSV file that contains 2,000 small news articles, where we have a title, a description. Also, a label, but the last…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.