Skip to content

Commit ed30813

Browse files
clarifying step 6: Set Environment Variables and aid aiohttp
1 parent 0c487bb commit ed30813

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docs/set_env_for_training_data_and_reference_doc.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ Folders [document_training](../data/document_training/) and [field_extraction_pr
1313
<img src="./get-access-signature.png" height="600" /> <img src="./choose-signature-options.png" height="600" />
1414
5. *Copy the SAS URL:* After creating the SAS, click `Copy` to get the URL with token. This will be used as the value for **TRAINING_DATA_SAS_URL** or **REFERENCE_DOC_SAS_URL** when running the sample code.
1515
<img src="./copy-access-signature.png" width="600" />
16-
6. *Set Environment Variables in `.env` File:* Add the SAS URL as value of **TRAINING_DATA_SAS_URL** and/or **REFERENCE_DOC_SAS_URL** and designated folder path as value of **TRAINING_DATA_PATH** or **REFERENCE_DOC_PATH** into the `.env` file.
17-
18-
```env
19-
TRAINING_DATA_SAS_URL=<Blob container SAS URL>
20-
TRAINING_DATA_PATH=<Designated folder path under the blob container>
21-
REFERENCE_DOC_SAS_URL=<Blob container SAS URL>
22-
REFERENCE_DOC_PATH=<Designated folder path under the blob container>
23-
```
16+
6. *Set Environment Variables in ".env" File:* Depending on the sample that you will run, you will need to set required environment variables in [.env](../notebooks/.env).
17+
- [analyzer_training](../notebooks/analyzer_training.ipynb): Add the SAS URL as value of **TRAINIGN_DATA_SAS_URL**, and a prefix for **TRAINING_DATA_PATH**. You can choose any folder name you like for **TRAINING_DATA_PATH**. For example, you could use "training_files".
18+
```env
19+
TRAINING_DATA_SAS_URL=<Blob container SAS URL>
20+
TRAINING_DATA_PATH=<Designated folder path under the blob container>
21+
```
22+
- [field_extraction_pro_mode](../notebooks/field_extraction_pro_mode.ipynb): Add the SAS URL as value of **REFERENCE_DOC_SAS_URL**, and a prefix for **REFERENCE_DOC_PATH**. You can choose any folder name you like for **REFERENCE_DOC_PATH**. For example, you could use "training_files".
23+
```env
24+
REFERENCE_DOC_SAS_URL=<Blob container SAS URL>
25+
REFERENCE_DOC_PATH=<Designated folder path under the blob container>
26+
```
2427
2528
Now, we have completed the preparation of the data environment. Next, we could create an analyzer through code.
2629

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
aiohttp
12
azure-identity
23
azure-storage-blob
34
python-dotenv

0 commit comments

Comments
 (0)