azure-search-openai-demo-csharp

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models

What is azure-search-openai-demo-csharp?

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.

Overview of azure-search-openai-demo-csharp

What it is

A sample .NET application that demonstrates the Retrieval-Augmented Generation (RAG) pattern using Azure OpenAI Service and Azure AI Search. It provides ChatGPT-style and Q&A experiences over enterprise data, using a fictitious company called Contoso Electronics with sample data on benefits, policies, and job descriptions.

Key features

  • Voice Chat, Chat, and Q&A interfaces
  • Responses include citations and source tracking to help evaluate trustworthiness
  • Demonstrates data preparation, prompt construction, and orchestration between ChatGPT and Azure AI Search
  • Settings in the user interface to tweak behavior and experiment with options

Use cases

  • Enterprise internal knowledge base Q&A (e.g., employee benefits, policies)
  • Prototyping RAG-based applications with Azure services
  • Learning how to integrate Azure OpenAI with Azure AI Search for retrieval-augmented generation

Getting started

See the repository README for detailed setup instructions, including GitHub Codespaces, VS Code Dev Containers, and local environment prerequisites (Azure Developer CLI, .NET 8, Git, PowerShell 7+, Docker).

License and pricing

License: MIT. Pricing: open source. The sample creates Azure resources with associated costs; see the README for cost estimation details.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/azure-samplesazure-search-openai-demo-csharp.svg)](https://yunodb.com/tools/azure-samplesazure-search-openai-demo-csharp?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/azure-samplesazure-search-openai-demo-csharp?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/azure-samplesazure-search-openai-demo-csharp.svg" alt="Featured on YunoDB" height="20"></a>