Skip to content

luisquintanilla/OAIDotnetZeroShotClassification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure OpenAI Service Zero Shot Classification in .NET

This sample shows how to use the Azure OpenAI Service .NET SDK to generate embeddings and classify GitHub issues from the .NET Runtime repo by area label.

Prerequisites

Instructions

  1. Set the following environment variables using information from your Azure Open AI service resource:

    • OPENAI_ENDPOINT - Azure OpenAI service endpoint.
    • OPENAI_KEY - Azure OpenAI service access key.
    • OPENAI_DEPLOYMENT - The name of the model deployment.
  2. Build the project

    dotnet build
    
  3. Run the project

    dotnet run
    

If successful, you should see output similar to the following:

Title: Refine the memory pressure expiration algorithm | Actual Area: area-Extensions-Caching | Predicted Area: area-Extensions-Caching
Title: Quaternion operator overloads should be using the respective methods | Actual Area: area-System.Numerics | Predicted Area: area-System.Runtime.InteropServices

About

.NET Console App sample showing how to use OpenAI embeddings to perform Zero Shot Classification of GitHub Issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages