Skip to content

tsjdev-apps/azure-openai-copilot-data-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use Azure OpenAI to create a Copilot on your own data

Logo

Microsoft enables the options to add your own data to Azure OpenAI to create your personal Copilot, which works on your data.

This repository contains a simple console application written in .NET 7 to demonstrate how to call an Azure OpenAI service with custom data.

Usage

The application uses the Microsoft.Extensions.Configuration.UserSecrets NuGet package, so the credentials are not part of the source code.

You need an Azure OpenAI service and a pre-configured Azure Cognitive Search service with a search index. Than you just need to set the following credentials using a Terminal with Visual Studio.

dotnet user-secrets set Azure:Search:Endpoint <COMPLETE ENDPOINT>
dotnet user-secrets set Azure:Search:ApiKey <API KEY>
dotnet user-secrets set Azure:Search:IndexName <INDEX NAME>

dotnet user-secrets set Azure:OpenAI:Resource <JUST RESOURCE NAME>
dotnet user-secrets set Azure:OpenAI:Deployment <DEPLOYMENT NAME>
dotnet user-secrets set Azure:OpenAI:ApiKey <API KEY>

Blog Posts

If you are more interested into details, please see the following medium.com posts:

About

Simple console application to demonstrate how to call an Azure OpenAI service with custom data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages