Skip to content

MarcoHolo/aoai-net-starterkit

 
 

Repository files navigation

Azure OpenAI | Call Center Starter Kit

Overview

Repository

This repository houses the source code for a demo application that delves into the specific aspects of executing the architecture detailed in "Extract and analyze call center data" from Microsoft Learn.

Architecture Overview An overview of the call center analytics architecture.

The provided demo code can serve as a foundation for implementing this architecture in custom applications. It showcases the integration of various Azure services and tools—including the Semantic Kernel—to construct a robust application that leverages Azure OpenAI and Azure Cognitive Search capabilities.

Repository Focus A focus on the repository's key areas.

To begin, clone this repository and adhere to the setup instructions outlined in the accompanying notebook to prepare your development environment. Next, peruse and customize the code within the notebooks. Additional insights into the architecture and its application can be found through the resources on Microsoft Learn.

Folder Contents

Below is a detailed breakdown of each folder in this repository. Each section contains a descriptive overview and an architecture diagram explaining the interaction between various components and the flow of data.

Section Notebook Description Details
00 Intro to OpenAI Fundamental insights into OpenAI Features links to expansive documentation
01 Environment Setup Detailed instructions for deploying Azure Services like Azure OpenAI and Cognitive Search Includes a application.env file within the conf folder containing essential configuration details
02 Basic Chat Examples of HTTP calls to the deployed Chat Completion LLM (gpt-3.5-turbo) .NET code is used to perform HTTP calls, Another option could be utilizes the REST Client extension for Visual Studio Code to execute the calls
02 Other Models Examples of HTTP calls to various LLMs like Embedding, Whisper Also uses .NET to perform HTTP calls.
03 Chat Completion C# sample code to interact with the ChatCompletion LLM using the Azure.AI.OpenAI NuGet package
03 Chat Completion Streaming Advanced C# sample code for streaming interactions with the ChatCompletion LLM
04 Basic Embeddings C# code to create embeddings with the Azure.AI.OpenAI NuGet package Embeddings are numerical text representations in a 1536-dimension vector
04 Cosine Similarity C# examples using MathNet.Numerics to calculate the cosine distance between vectors The closer the distance, the more similar the semantic meanings
05 Vector Database C# code for using Azure Cognitive Search as a vector database Involves storing and querying embeddings with a created Search Index
06 Semantic Function Inline Demonstrates inline definition of a Microsoft Semantic Kernel function
06 Semantic Function File Illustrates importing a Semantic Kernel function from an external file
06 Native Function Example of importing a native C# function to the Semantic Kernel
06 Memory Explanation of the Semantic Kernel Memory concept and usage
06 Planner Overview of the Semantic Kernel planner which sequences function calls for a task
06 Logging How to utilize the default .NET logger with the Semantic Kernel

What Is Generative AI?

Generative AI refers to AI systems capable of creating original content. It's commonly implemented in chat applications, such as OpenAI's ChatGPT. These AI applications, powered by Large Language Models (LLMs) like those developed by OpenAI, use extensive data training to generate contextually appropriate and coherent responses.

For a comprehensive understanding of generative AI, explore Microsoft's introduction to generative AI.

Introduction to Azure OpenAI

Azure OpenAI, a collaborative offering from Microsoft and OpenAI, melds Azure's enterprise-grade features with OpenAI's sophisticated generative AI models. It facilitates a seamless workflow between Azure services and OpenAI while ensuring regional availability, private networking, and adherence to responsible AI practices.

Getting Started

Overview

  • Get Access: Access to Azure OpenAI is currently by application only. Apply here.
  • Responsible AI: Follow Microsoft's six principles of responsible AI as outlined here. Additional information on Azure OpenAI's transparency can be found in the transparency note.
  • Learn About OpenAI: Enhance your knowledge through OpenAI Learn Live and the Azure OpenAI Documentation.

Prompt Engineering

Crafting precise prompts is essential for eliciting the desired output from language models. Learn the art of prompt engineering through these resources:

Quickstarts

Jumpstart your Azure OpenAI journey with these quickstart guides:

About

Azure OpenAI Starter Kit for .NET Developers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published