Skip to content

aherrick/RAGDotNet

Repository files navigation

🧠 .NET Console App: Azure AI Integration (Procedural Example)

dotnet

This project contains procedural C# code for working with:

  • Azure OpenAI (via AzureOpenAIClient)
  • Azure AI Search (via SearchIndexClient)
  • Embeddings (via text-embedding-3-small deployment)

🛠️ 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.

🔐 Configuration (User Secrets)

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"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages