Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ This template, the application code and configuration it contains, has been buil

[📺 Watch a video overview of the app.](https://youtu.be/3acB0OWmLvM)

This sample demonstrates a few approaches for creating ChatGPT-like experiences over your own data using the Retrieval Augmented Generation pattern. It uses Azure OpenAI Service to access a GPT model (gpt-4.1-mini), and Azure AI Search for data indexing and retrieval.
This sample demonstrates a few approaches for creating ChatGPT-like experiences over your own data using the Retrieval Augmented Generation pattern. It uses Azure OpenAI Service to access a GPT model (gpt-4.1), and Azure AI Search for data indexing and retrieval.

The repo includes sample data so it's ready to try end to end. In this sample application we use a fictitious company called Contoso Electronics, and the experience allows its employees to ask questions about the benefits, internal policies, as well as job descriptions and roles.

Expand Down
7 changes: 5 additions & 2 deletions app/backend/approaches/prompts/chat_query_rewrite.prompty
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ sample:
user_query: Does it include hearing?
past_messages:
- role: user
content: "What is included in my Northwind Health Plus plan that is not in standard?"
content: "What steps do I take if a property owner dies without a will in Georgia?"
- role: assistant
content: "The Northwind Health Plus plan includes coverage for emergency services, mental health and substance abuse coverage, and out-of-network services, which are not included in the Northwind Standard plan. [Benefit_Options.pdf#page=3]"
content: "If a property owner dies intestate (without a will) in Georgia, the estate typically goes through probate in the county probate court. The court appoints an administrator to manage the estate and distribute assets based on Georgia’s intestacy laws. Heirs may need to file a petition, provide a death certificate, and publish a notice to debtors and creditors. Property may require a title search and court approval before transfer. [GA_Probate_Guide.pdf#page=5]"
---
system:
Below is a history of the conversation so far, and a new question asked by the user that needs to be answered by searching in a knowledge base.
Expand Down Expand Up @@ -42,3 +42,6 @@ Show available health plans

user:
Generate search query for: {{ user_query }}



2 changes: 1 addition & 1 deletion app/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Azure OpenAI + AI Search</title>
<title>HeirAid</title>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/frontend/src/locales/da/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Stil et spørgsmål",
"login": "Log ind",
Expand Down
10 changes: 5 additions & 5 deletions app/frontend/src/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Ask a question",
"login": "Login",
Expand Down Expand Up @@ -37,9 +37,9 @@
"chatEmptyStateTitle": "Chat with your data",
"chatEmptyStateSubtitle": "Ask anything or try an example",
"defaultExamples": {
"1": "What is included in my Northwind Health Plus plan that is not in standard?",
"2": "What happens in a performance review?",
"3": "What does a Product Manager do?",
"1": "What steps do I take if a property owner dies without a will in Georgia?",
"2": "How can I find out if a property has unpaid taxes in Fulton County?",
"3": "What is the process of transferring property ownership in Atlanta after death?",
"placeholder": "Type a new question (e.g. does my plan cover annual eye exams?)"
},
"askTitle": "Ask your data",
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/locales/es/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Haz una pregunta",
"login": "Iniciar sesión",
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Posez une question",
"login": "Connexion",
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/locales/it/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Fai una domanda",
"login": "Accedi",
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/locales/ja/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "チャット",
"qa": "一問一答",
"login": "ログイン",
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/locales/nl/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Stel een vraag",
"login": "Inloggen",
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/locales/ptBR/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pageTitle": "Azure OpenAI + AI Search",
"headerTitle": "Azure OpenAI + AI Search",
"pageTitle": "HeirAid",
"headerTitle": "HeirAid",
"chat": "Chat",
"qa": "Faça uma pergunta",
"login": "Entrar",
Expand Down
2 changes: 1 addition & 1 deletion azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
# Please check docs/azure_container_apps.md for more information on how to deploy to Azure Container Apps
host: containerapp
docker:
remoteBuild: true
remoteBuild: false
# Please check docs/azure_app_service.md for more information on how to deploy to Azure App Service
# host: appservice
hooks:
Expand Down
Binary file added data/2025-Aircraft-Personal-Property-Return.pdf
Binary file not shown.
Binary file added data/2025-Business-Personal-Property-Return.pdf
Binary file not shown.
Binary file added data/2025-Freeport-Exemption-Application.pdf
Binary file not shown.
Binary file added data/2025-Marine-Personal-Property-Return.pdf
Binary file not shown.
Binary file added data/53-8-10.pdf
Binary file not shown.
Binary file added data/53-8-13.pdf
Binary file not shown.
Binary file added data/A01.pdf
Binary file not shown.
Binary file added data/A02.pdf
Binary file not shown.
Binary file added data/A03.pdf
Binary file not shown.
Binary file added data/B01.pdf
Binary file not shown.
Binary file added data/B02.pdf
Binary file not shown.
Binary file added data/B03.pdf
Binary file not shown.
Binary file added data/B04.pdf
Binary file not shown.
Binary file added data/B05.pdf
Binary file not shown.
Binary file added data/B06.pdf
Binary file not shown.
Binary file added data/B07.pdf
Binary file not shown.
Binary file added data/B08.pdf
Binary file not shown.
Binary file added data/B09.pdf
Binary file not shown.
Binary file added data/B10.pdf
Binary file not shown.
Binary file added data/B11.pdf
Binary file not shown.
Binary file removed data/Benefit_Options.pdf
Binary file not shown.
Binary file added data/C01.pdf
Binary file not shown.
Binary file added data/C02.pdf
Binary file not shown.
Binary file added data/C03.pdf
Binary file not shown.
Binary file added data/C04.pdf
Binary file not shown.
Binary file added data/C05.pdf
Binary file not shown.
Binary file added data/C06.pdf
Binary file not shown.
Binary file added data/COUNCIL01.pdf
Binary file not shown.
Binary file added data/COUNCIL02.pdf
Binary file not shown.
Binary file added data/COUNCIL03.pdf
Binary file not shown.
Binary file added data/COUNCIL04.pdf
Binary file not shown.
Binary file added data/COUNCIL05.pdf
Binary file not shown.
Binary file added data/COUNCIL06.pdf
Binary file not shown.
Binary file added data/COUNCIL07.pdf
Binary file not shown.
Binary file added data/COUNCIL08.pdf
Binary file not shown.
Binary file added data/COUNCIL09.pdf
Binary file not shown.
Binary file added data/COUNCIL10.pdf
Binary file not shown.
Binary file added data/COUNCIL11.pdf
Binary file not shown.
Binary file added data/COUNCIL12.pdf
Binary file not shown.
48 changes: 0 additions & 48 deletions data/Contoso_Electronics_Company_Overview.md

This file was deleted.

Binary file added data/D01.pdf
Binary file not shown.
Binary file added data/D02.pdf
Binary file not shown.
Binary file added data/D03.pdf
Binary file not shown.
Binary file added data/E01.pdf
Binary file not shown.
Binary file added data/E02.pdf
Binary file not shown.
Binary file added data/E03.pdf
Binary file not shown.
Binary file added data/E04.pdf
Binary file not shown.
Binary file added data/E05.pdf
Binary file not shown.
Binary file added data/E06.pdf
Binary file not shown.
Binary file added data/E07.pdf
Binary file not shown.
Binary file added data/F01.pdf
Binary file not shown.
Binary file added data/F02.pdf
Binary file not shown.
Binary file added data/F03.pdf
Binary file not shown.
Binary file added data/F04.pdf
Binary file not shown.
Binary file added data/Fulton-Trust-Affidavit.pdf
Binary file not shown.
Binary file added data/G01.pdf
Binary file not shown.
Binary file added data/G02.pdf
Binary file not shown.
Binary file added data/G03.pdf
Binary file not shown.
Binary file added data/GPCSF-1-General-Instructions.pdf
Binary file not shown.
Binary file added data/GPCSF-10-Petition-for-Years-Support.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/H01.pdf
Binary file not shown.
Binary file added data/H02.pdf
Binary file not shown.
Binary file added data/H03.pdf
Binary file not shown.
Binary file added data/H04.pdf
Binary file not shown.
Binary file added data/I01.pdf
Binary file not shown.
Binary file added data/I02.pdf
Binary file not shown.
Binary file added data/I03.pdf
Binary file not shown.
Binary file added data/I04.pdf
Binary file not shown.
Binary file added data/I05.pdf
Binary file not shown.
Binary file added data/J01.pdf
Binary file not shown.
Binary file added data/J02.pdf
Binary file not shown.
Binary file added data/J03.pdf
Binary file not shown.
14 changes: 0 additions & 14 deletions data/Json_Examples/2189.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/Json_Examples/2190.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/Json_Examples/2191.json

This file was deleted.

14 changes: 0 additions & 14 deletions data/Json_Examples/2192.json

This file was deleted.

Loading