This project contains procedural C# code for working with:
- Azure OpenAI (via
AzureOpenAIClient) - Azure AI Search (via
SearchIndexClient) - Embeddings (via
text-embedding-3-smalldeployment)
🛠️ This code is adapted from the official Microsoft .NET AI Templates Preview 1, designed to help developers get started with generative AI in a familiar, straightforward way.
To securely configure the endpoints and API keys, this project uses .NET User Secrets.
Example secrets.json structure:
{
"AzureOpenAI": {
"Endpoint": "https://your-openai-url-here/",
"Key": "your-openai-key-here",
"EmbeddingDeployment": "text-embedding-3-small",
"ChatDeployment": "gpt-4o-mini"
},
"AzureAISearch": {
"Endpoint": "https://your-search-url-here/",
"Key": "your-search-key-here"
}
}