Skip to content

Commit 08244f0

Browse files
committed
moved docs
1 parent 3a6d3c6 commit 08244f0

File tree

153 files changed

+360
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+360
-98
lines changed
Lines changed: 45 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,61 @@
1+
12
---
23
name: Rewrite RAG query
34
description: Suggest the optimal search query based on the user's query, examples, and chat history.
45
model:
5-
api: chat
6-
parameters:
7-
tools: ${file:chat_query_rewrite_tools.json}
6+
api: chat
7+
parameters:
8+
tools: ${file:chat_query_rewrite_tools.json}
89
sample:
9-
user_query: Does it include hearing?
10-
past_messages:
11-
- role: user
12-
content: "What is included in my Northwind Health Plus plan that is not in standard?"
13-
- role: assistant
14-
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]"
10+
user_query: Can I evict tenants if the landlord is dead?
11+
past_messages:
12+
- role: user
13+
content: "What steps do I take if a property owner dies without a will in Georgia?"
14+
- role: assistant
15+
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."
1516
---
1617
system:
1718
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.
18-
You have access to Azure AI Search index with 100's of documents.
19-
Generate a search query based on the conversation and the new question.
20-
Do not include cited source filenames and document names e.g. info.txt or doc.pdf in the search query terms.
21-
Do not include any text inside [] or <<>> in the search query terms.
22-
Do not include any special characters like '+'.
23-
If the question is not in English, translate the question to English before generating the search query.
24-
If you cannot generate a search query, return just the number 0.
19+
You have access to Azure AI Search index with 100s of legal and property-related documents for Georgia. Generate a **search query** based on the conversation and the new question.
2520

26-
user:
27-
How did crypto do last year?
21+
**Guidelines:**
22+
- Do not include filenames or source citations.
23+
- Strip out any text in brackets `[]` or angle brackets `<<>>`.
24+
- Avoid special characters like `+`.
25+
- If the user’s question is not in English, translate it first before generating the search query.
26+
- If you're unable to produce a meaningful query, return just the number `0`.
2827

29-
assistant:
30-
Summarize Cryptocurrency Market Dynamics from last year
28+
**Example query mappings:**
29+
examples:
30+
- user_query: Can I evict tenants if the landlord is dead?
31+
generated_query: eviction process when property owner is deceased in Georgia
3132

32-
user:
33-
What are my health plans?
33+
- user_query: What is heir property?
34+
generated_query: Georgia law on heir property ownership and inheritance
35+
36+
- user_query: How do I resolve heir property disputes?
37+
generated_query: resolving heir property disputes in Georgia probate court
38+
39+
- user_query: What is a quiet title action?
40+
generated_query: quiet title action process in Georgia real estate
3441

35-
assistant:
36-
Show available health plans
42+
- user_query: How do I get the deed after my mother died?
43+
generated_query: accessing property deed after relative dies without will in Georgia
3744

38-
{% for message in past_messages %}
39-
{{ message["role"] }}:
40-
{{ message["content"] }}
45+
- user_query: Can I sell a house with multiple heirs?
46+
generated_query: selling inherited property with multiple heirs in Georgia
47+
48+
- user_query: What happens if no one files probate?
49+
generated_query: consequences of not filing probate in Georgia
50+
51+
- user_query: Do I need court approval to transfer a property title after death?
52+
generated_query: court approval for property title transfer after death in Georgia
53+
54+
{% for message in past\_messages %}
55+
{{ message\["role"] }}:
56+
{{ message\["content"] }}
4157
{% endfor %}
4258

4359
user:
44-
Generate search query for: {{ user_query }}
60+
Generate search query for: {{ user\_query }}
61+

app/frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Azure OpenAI + AI Search</title>
7+
<title>HeirAid</title>
88
</head>
99
<body>
1010
<div id="root"></div>

app/frontend/src/locales/da/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Stil et spørgsmål",
66
"login": "Log ind",

app/frontend/src/locales/en/translation.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Ask a question",
66
"login": "Login",
@@ -37,9 +37,9 @@
3737
"chatEmptyStateTitle": "Chat with your data",
3838
"chatEmptyStateSubtitle": "Ask anything or try an example",
3939
"defaultExamples": {
40-
"1": "What is included in my Northwind Health Plus plan that is not in standard?",
41-
"2": "What happens in a performance review?",
42-
"3": "What does a Product Manager do?",
40+
"1": "What steps do I take if a property owner dies without a will in Georgia?",
41+
"2": "How can I find out if a property has unpaid taxes in Fulton County?",
42+
"3": "What is the process of transferring property ownership in Atlanta after death?",
4343
"placeholder": "Type a new question (e.g. does my plan cover annual eye exams?)"
4444
},
4545
"askTitle": "Ask your data",

app/frontend/src/locales/es/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Haz una pregunta",
66
"login": "Iniciar sesión",

app/frontend/src/locales/fr/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Posez une question",
66
"login": "Connexion",

app/frontend/src/locales/it/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Fai una domanda",
66
"login": "Accedi",

app/frontend/src/locales/ja/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "チャット",
55
"qa": "一問一答",
66
"login": "ログイン",

app/frontend/src/locales/nl/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Stel een vraag",
66
"login": "Inloggen",

app/frontend/src/locales/ptBR/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pageTitle": "Azure OpenAI + AI Search",
3-
"headerTitle": "Azure OpenAI + AI Search",
2+
"pageTitle": "HeirAid",
3+
"headerTitle": "HeirAid",
44
"chat": "Chat",
55
"qa": "Faça uma pergunta",
66
"login": "Entrar",

0 commit comments

Comments
 (0)