# Azure-Samples/azure-search-openai-demo

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

Repository: https://github.com/Azure-Samples/azure-search-openai-demo
Canonical: https://ross.abutalabs.com/products/azure-search-openai-demo
Homepage: https://azure.microsoft.com/products/search
Language: Python
License: MIT
License Family: permissive
Topics: azure, azurecognitivesearch, chatgpt, openai, azureopenai, azd-templates, azure-ai-search, ai-azd-templates
Last push: 2026-08-13T12:54:39+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 93, longevity 93
- inputs: {"age_days": 1302, "days_push": 20, "days_rel": 46, "gap_med": 6, "n_releases_24m": 54}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7746, forks 5469 (observed 2026-08-28T04:10:02.751664+00:00)

## What it is
A reference sample application implementing the Retrieval-Augmented Generation (RAG) pattern on Azure, combining Azure AI Search for document indexing/retrieval with Azure OpenAI GPT models to power a ChatGPT-style chat and Q&A experience over your own documents. It ships as an azd template with a Python backend, TypeScript frontend, and Bicep infrastructure-as-code for one-command Azure deployment.

## Use cases
- build a chatbot that answers questions over my own documents
- deploy a RAG app on Azure with OpenAI and AI Search
- ChatGPT-like interface over private company data
- index PDFs and query them with an LLM
- learn how to implement retrieval-augmented generation end to end
- starting template for an enterprise AI chat app on Azure

## When to choose
- you are committed to the Azure ecosystem (Azure OpenAI, Azure AI Search, App Service)
- you want a production-shaped, well-maintained reference architecture with IaC included
- you need a quick starting point for a document Q&A chat experience

## When to avoid
- you want a cloud-agnostic or self-hosted stack without Azure dependencies
- you need production-grade security out of the box - the README warns extra hardening is required
- you want to avoid Azure OpenAI and AI Search costs, which can be significant

## Facets
- artifact type: application
- maturity: active
- function: rag, chatbot, search-engine, llm-inference, web-framework, deployment
- domain: large-language-models, artificial-intelligence, cloud-computing, web-development
- platform: cloud, python
- tags: azure-openai, azure-ai-search, azd-template, chatgpt-style, sample-app, bicep, vector-search, retrieval-augmented-generation, search, web-server, docker

## Member repositories
- Azure-Samples/azure-search-openai-demo (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.751664+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:35:09.840278+00:00, confidence not recorded.
  - readme: https://github.com/Azure-Samples/azure-search-openai-demo (fetched 2026-08-28T04:10:02.751664+00:00, sha b3a5da85be0e)
  - homepage: https://azure.microsoft.com/products/search (fetched 2026-08-29T08:32:58.911512+00:00, sha e534a514c789)
  - site_page: https://azure.microsoft.com/en-us/pricing/free-services (fetched 2026-08-29T08:32:58.925388+00:00, sha 401d8cc69d16)
  - site_page: https://azure.microsoft.com/en-us/pricing/purchase-options (fetched 2026-08-29T08:32:58.927242+00:00, sha 38e380b83af1)
  - site_page: https://azure.microsoft.com/en-us/pricing/calculator (fetched 2026-08-29T08:32:58.929388+00:00, sha 73898700cc14)
  - site_page: https://azure.microsoft.com/en-us/pricing/offers/savings-plans (fetched 2026-08-29T08:32:58.931300+00:00, sha 2526c069d991)
  - site_page: https://azure.microsoft.com/en-us/pricing/offers/reservations (fetched 2026-08-29T08:32:58.933670+00:00, sha 302c0d1b8bee)
  - site_page: https://azure.microsoft.com/en-us/pricing/offers/hybrid-benefit (fetched 2026-08-29T08:32:58.936161+00:00, sha 87f8132b231a)
  - site_page: https://azure.microsoft.com/en-us/pricing (fetched 2026-08-29T08:32:58.921065+00:00, sha f8cc851c9b5a)
  - site_page: https://azure.microsoft.com/en-us/pricing/purchase-options/azure-account (fetched 2026-08-29T08:32:58.923318+00:00, sha e12061e1a4dc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
