|
11 | 11 | - Copy and paste the contents from the scripts/.env.sample file. |
12 | 12 | - Replace the values for `<AZURE_OPENAI_RESOURCE>` and `<AZURE_OPENAI_KEY>` with the name of the Azure OpenAI resource and either KEY 1 or KEY 2. |
13 | 13 | - Save the .env file. |
14 | | -- Within the scripts folder, create a config file `config.json`. The format will be a list of JSON objects, with each object specifying a configuration of local data path and target search service and index. Assuming you used "Deploy to Azure" to deploy this solution accelerator, these values can be found within the resources themselves. Copy and paste the following script block into the config.json file and update accordingly. |
| 14 | +- Within the scripts folder, create a config file `config.json`. The format will be a list of JSON objects, with each object specifying a configuration of local data path and target search service and index. Assuming you used "Deploy to Azure" to deploy this solution accelerator, these values can be found within the resources themselves. If you did not change the Search Index name, the default value is: promissory-notes-index. Copy and paste the following script block into the config.json file and update accordingly. |
15 | 15 |
|
16 | 16 | ``` |
17 | 17 | [ |
|
21 | 21 | "subscription_id": "<subscription id>", |
22 | 22 | "resource_group": "<resource group name>", |
23 | 23 | "search_service_name": "<search service name to use>", |
24 | | - "index_name": "promissory-notes-index", |
| 24 | + "index_name": "<search index name to use>", |
25 | 25 | "chunk_size": 1024, |
26 | 26 | "token_overlap": 128, |
27 | 27 | "semantic_config_name": "default", |
|
36 | 36 | - Create a virtual environment for the sample data preparation |
37 | 37 | - Open a terminal window. |
38 | 38 | - Create the virtual environment: `python -m venv scriptsenv` |
39 | | - - Activate the virtual environment: `.\scriptsenv\bin\activate` |
40 | | -- Install the necessary packages listed in scripts/requirements-dev.txt, e.g. `pip install --user -r requirements-dev.txt` |
| 39 | + - Activate the virtual environment: `.\scriptsenv\Scripts\activate` |
| 40 | +- Install the necessary packages listed in scripts/requirements-dev.txt, e.g. `pip install -r requirements-dev.txt` |
41 | 41 | - Create the index and ingest PDF data with Form Recognizer |
42 | 42 | - Replace `<form-rec-resource-name>` with the name of the existing or recently created Azure Document Intelligence (Form Recognizer) resource and replace `<form-rec-key>` with key 1 or key 2 of the existing or recently created Azure Document Intelligence (Form Recognizer) resource: |
43 | 43 | `python data_preparation.py --config config.json --njobs=1 --form-rec-resource <form-rec-resource-name> --form-rec-key <form-rec-key>` |
|
0 commit comments