Skip to content

Commit bf0c37d

Browse files
Merge pull request Azure-Samples#140 from Azure-Samples/pmishra/rag_doc_updates
updated docs for the advanced RAG solution
2 parents d329676 + 90a3d80 commit bf0c37d

File tree

5 files changed

+14
-34
lines changed

5 files changed

+14
-34
lines changed

Solution_Accelerators/Advanced_RAG/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ This error occurs when your user or service principal does not have the necessar
9696
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.
9797

9898
### 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)
100100

101101
### Why is my frontend deployment script taking long?
102102
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/).

Solution_Accelerators/Advanced_RAG/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ To read more about the underlying design principles, architecture, and solution
1212
* 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).
1313

1414
## Table of Contents
15+
1516
- [Use Case: Copilot for Financial Reports](#use-case-copilot-for-financial-reports)
16-
- [Features](#Features)
17-
- [Architecture](#Architecture)
17+
- [Features](#features)
18+
- [Architecture](#architecture)
1819
- [Getting Started](#getting-started)
1920
- [Code of Conduct](#code-of-conduct)
2021
- [Responsible AI Guidelines](#responsible-ai-guidelines)
@@ -90,4 +91,4 @@ This dataset is released under the Community Data License Agreement – Permissi
9091

9192
## License
9293

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.

Solution_Accelerators/Advanced_RAG/SETUP.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ When you begin to setup the AI Assistant deployment, you must must have `Microso
225225
226226
![ConstosoSub](./docs/media/contososubscription.png)
227227
228-
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:
229229
230230
- Azure Key Vault
231231
- Azure OpenAI
@@ -421,7 +421,7 @@ More details on how to use the tool can be found in the [evaluation tools readme
421421
422422
### Azure Kubernetes Setup
423423
**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.
425425
426426
1. To work with the AKS cluster, developers will need `Azure Kubernetes Service RBAC Admin` role assigned.
427427
@@ -520,7 +520,7 @@ Additionally, developers would need `Cosmos DB Built-in Data Contributor` role w
520520
```
521521
522522
### 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.
524524
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:
525525
```
526526
az keyvault secret set --vault-name <key vault name> --name "KEYVAULT-URI" --value "https://<keyvault name>.vault.azure.net/"

Solution_Accelerators/Advanced_RAG/src/evals/README.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The tool defaults to calling RAG Bot's Dev endpoint. You can point `rag_eval` to
5858
]
5959
```
6060

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.
6262
```json
6363
"args": [
6464
"--eval_flow=evaluate_end_to_end",
@@ -91,7 +91,7 @@ The Configuration Service is a separate application for uploading and managing R
9191

9292
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.
9393

94-
**Leverage an existing configuration:**
94+
**Leverage an existing configuration:**
9595
```json
9696
"args": [
9797
"--eval_flow=evaluate_end_to_end",
@@ -110,11 +110,11 @@ The `--orchestrator_config` can be set to a specific version ID for an existing
110110
]
111111
```
112112

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.
114114

115115

116116

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`
118118
1) Go to prompt_flow_resources/RAG_E2E_Eval_Flow/flow.dag.yaml and replace \<AZURE-OPENAI-CONNECTION> with your Azure OpenAI connection name
119119
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)
120120
3) Navigate to ml.azure.com and go to your workspace
@@ -176,7 +176,7 @@ Example with formatted Markdown table:
176176
| 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 |
177177
| 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 |
178178
| 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
180180

181181
Runs can also be viewed in the Azure Machine Learning workspace under the `RAG_E2E_Eval_Flow` flow.
182182

@@ -196,25 +196,4 @@ RAG Bot's answers are saved to new version of the `RAG-Eval-Results` AML data as
196196

197197
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.
198198

199-
![alt text](documentation/flow_ui.png)
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.
220-
- [ ] Confirm that others can run the tool.
199+
![alt text](documentation/flow_ui.png)

0 commit comments

Comments
 (0)