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.
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>
If you are more interested into details, please see the following medium.com posts: