You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Solution_Accelerators/Advanced_RAG/FAQ.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ This error occurs when your user or service principal does not have the necessar
96
96
This error occurs because your account or service principal does not have the "Search Index Data Reader" role assigned for the selected index. Ask your service administrator to grant you this role in the Azure Portal → Access Control (IAM) section of your Azure AI Search resource.
97
97
98
98
### How to keep my data updated?
99
-
It is best that you have a schedule for re-running ingestion with every new set of data to make sure your index is updated. To do so follow instructions [here.](./src/skills/ingestion/README_RETAIL.md/#keep-your-index-updated-by-re-running-ingestion)
99
+
It is best that you have a schedule for re-running ingestion with every new set of data to make sure your index is updated. To do so follow instructions [here.](./src/skills/ingestion/README_FINANCIAL.md/#running-ingestion-service-locally)
100
100
101
101
### Why is my frontend deployment script taking long?
102
102
Frontend Deployment needs to compress Node build files, this can take a while using using built in Windows Zip. To speed up the process install 7Zip (https://www.7-zip.org/).
Copy file name to clipboardExpand all lines: Solution_Accelerators/Advanced_RAG/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,10 @@ To read more about the underlying design principles, architecture, and solution
12
12
* For more information on best practices on evaluation, architecture or validation of the solution design and outputs, please see the 'Additional Resources' section in solution documentation: [Advanced RAG Solution Accelerator Documentation](./docs/Advanced%20RAG%20Solution%20Accelerator%20Documentation.pdf).
13
13
14
14
## Table of Contents
15
+
15
16
-[Use Case: Copilot for Financial Reports](#use-case-copilot-for-financial-reports)
16
-
-[Features](#Features)
17
-
-[Architecture](#Architecture)
17
+
-[Features](#features)
18
+
-[Architecture](#architecture)
18
19
-[Getting Started](#getting-started)
19
20
-[Code of Conduct](#code-of-conduct)
20
21
-[Responsible AI Guidelines](#responsible-ai-guidelines)
@@ -90,4 +91,4 @@ This dataset is released under the Community Data License Agreement – Permissi
90
91
91
92
## License
92
93
93
-
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
94
+
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
If you have successfully completed the [Azure Resources setup](#azure-resources-setup), the required resources for end-to-end local setup should already be provisioned. You can proceed by verifying the existence of the following resources in your Azure Resource Group:
228
+
If you have successfully completed the [Azure Resources setup](#setting-up-azure-resources), the required resources for end-to-end local setup should already be provisioned. You can proceed by verifying the existence of the following resources in your Azure Resource Group:
229
229
230
230
- Azure Key Vault
231
231
- Azure OpenAI
@@ -421,7 +421,7 @@ More details on how to use the tool can be found in the [evaluation tools readme
421
421
422
422
### Azure Kubernetes Setup
423
423
**Note:**
424
-
Setting up the Azure Kubernetes Service (AKS) and application gateway is only needed if you want the services to be deployed to cloud. Users can proceed with setting up the keyvault and then follow the instructions to [run the solution locally in VSCode](#local-setup). Once that succeeds, they can then come and setup the AKS.
424
+
Setting up the Azure Kubernetes Service (AKS) and application gateway is only needed if you want the services to be deployed to cloud. Users can proceed with setting up the keyvault and then follow the instructions to [run the solution locally in VSCode](#running-services-locally). Once that succeeds, they can then come and setup the AKS.
425
425
426
426
1. To work with the AKS cluster, developers will need `Azure Kubernetes Service RBAC Admin` role assigned.
427
427
@@ -520,7 +520,7 @@ Additionally, developers would need `Cosmos DB Built-in Data Contributor` role w
520
520
```
521
521
522
522
### Keyvault
523
-
1. To work with keyvault, developers will need GET, LIST and SET permissions to keyvault secrets. Refer [AKS](#aks) to grant these permissions via access policies tab.
523
+
1. To work with keyvault, developers will need GET, LIST and SET permissions to keyvault secrets. Refer [AKS](#azure-kubernetes-setup) to grant these permissions via access policies tab.
524
524
2. Navigate through `config.py` files across micro-services in the `<repo root>\Advanced_RAG\src` folder: config_hub, skills\search, orchestrator_rag, data, session_manager and add any un-populated secrets with appropriate values in the keyvault. Examples:
525
525
```
526
526
az keyvault secret set --vault-name <key vault name> --name "KEYVAULT-URI" --value "https://<keyvault name>.vault.azure.net/"
Copy file name to clipboardExpand all lines: Solution_Accelerators/Advanced_RAG/src/evals/README.md
+6-27Lines changed: 6 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ The tool defaults to calling RAG Bot's Dev endpoint. You can point `rag_eval` to
58
58
]
59
59
```
60
60
61
-
RAG Bot is non-deterministic. You can repeat the same query multiple times to get a more accurate evaluation.
61
+
RAG Bot is non-deterministic. You can repeat the same query multiple times to get a more accurate evaluation.
62
62
```json
63
63
"args": [
64
64
"--eval_flow=evaluate_end_to_end",
@@ -91,7 +91,7 @@ The Configuration Service is a separate application for uploading and managing R
91
91
92
92
The `--orchestrator_config` can be set to a specific version ID for an existing configuration in the Configuration Service. The tool will then use this configuration for the evaluation. You can also provide an absolute path to a local config json file which will be automatically uploaded to the Configuration Service. The version ID of the uploaded configuration will be the same experiment ID as the evaluation.
93
93
94
-
**Leverage an existing configuration:**
94
+
**Leverage an existing configuration:**
95
95
```json
96
96
"args": [
97
97
"--eval_flow=evaluate_end_to_end",
@@ -110,11 +110,11 @@ The `--orchestrator_config` can be set to a specific version ID for an existing
110
110
]
111
111
```
112
112
113
-
Similarly, configuring the search index can be done with the `--search_config` argument.
113
+
Similarly, configuring the search index can be done with the `--search_config` argument.
114
114
115
115
116
116
117
-
## [Important] Upload Evaluation Flow to Prompt Flow for `evaluate_end_to_end`
117
+
## [Important] Upload Evaluation Flow to Prompt Flow for `evaluate_end_to_end`
118
118
1) Go to prompt_flow_resources/RAG_E2E_Eval_Flow/flow.dag.yaml and replace \<AZURE-OPENAI-CONNECTION> with your Azure OpenAI connection name
119
119
2) Compress all the files under prompt_flow_resources/RAG_E2E_Eval_Flow into a ZIP File (Note: flow.dag.yaml must be in the root of your ZIP File)
120
120
3) Navigate to ml.azure.com and go to your workspace
@@ -176,7 +176,7 @@ Example with formatted Markdown table:
176
176
| Why did the investment in associates and joint ventures change significantly? | Investment in associates and joint ventures increased due to the acquisition of a new subsidiary. | 0 | 2.0 |
177
177
| What is the largest net currency exposure for the Group? | The Group has a net exposure of AED 7.24b to Indian Rupee. | 1 | 7.0 |
178
178
| Why did share of profit from investment in associates change? | The company recognized Gain on acquisition of additional stake in XYZ Ltd. | 2 | 2.0 |
179
-
| What was the Net Profit and Net Profit growth for the year? | Net Profit, before non-controlling interests, increased by 15% to AED 5.6b. | 3 | 1.0 |ntrolling interests, ... ... 3 1.0
179
+
| What was the Net Profit and Net Profit growth for the year? | Net Profit, before non-controlling interests, increased by 15% to AED 5.6b. | 3 | 1.0 |ntrolling interests, ... ... 3 1.0
180
180
181
181
Runs can also be viewed in the Azure Machine Learning workspace under the `RAG_E2E_Eval_Flow` flow.
182
182
@@ -196,25 +196,4 @@ RAG Bot's answers are saved to new version of the `RAG-Eval-Results` AML data as
196
196
197
197
By default, the tool uses the `RAG_E2E_Eval_Flow`. This flow can be extended to support additional evaluation scenarios, such as RAG evaluations (groundedness, relevance, etc.). A new run shhoul be created for each successful evaluation.
198
198
199
-

200
-
201
-
## Roadmap
202
-
203
-
### V1 Feature TODO
204
-
-[X] Configuration service support.
205
-
-[X] Make the evaluation dataset version configurable.
206
-
-[X] Dataset configuration: Duplicates per sample.
207
-
-[X] Unify evaluation flows.
208
-
209
-
### V2 Feature TODO
210
-
-[ ] Migrate E2E Evaluation to Prompty.
211
-
-[ ] Support context evaluations such as relevance and groundedness.
212
-
-[ ] Support running from VS Code.
213
-
-[ ] Support running from Azure DevOps Build Pipeline
214
-
-[ ] Expose tool at pip package with changelog. Must include a script to run, ideally as an ADO pipeline.
215
-
-[ ] Python API which returns experiment results in-memory.
216
-
-[ ] Dataset configuration: Paraphrases per sample in E2E Dataset.
217
-
218
-
### Testing TODO
219
-
-[X] Write README that others can follow without guidance.
0 commit comments