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: README.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,9 @@ If you intend to develop your own code following this sample, we recommend you u
56
56
```bash
57
57
cd src
58
58
```
59
+
59
60
- Next, install the requirements in your venv. Note: this may take several minutes the first time you install.
61
+
60
62
``` bash
61
63
pip install -r requirements.txt
62
64
```
@@ -65,6 +67,7 @@ If you intend to develop your own code following this sample, we recommend you u
65
67
- Note: if you are running from within a Codespace or the curated VS Code cloud container, you will need to use `az login --use-device-code`
66
68
67
69
## Step 2: Provision or reference Azure AI resources
70
+
68
71
Use the provision script to provision new or reference existing Azure AI resources to use in your application.
69
72
70
73
We have a process to help you easily provision the resources you need to run this sample. You can either create new resources, or specify existing resources.
@@ -81,19 +84,19 @@ You can find the details you need for existing resources in the top-right projec
81
84
You can also try running our experimental script to check quota in your subscription. You can modify it to fit your requirements.
82
85
83
86
> [!NOTE]
84
-
> This script is intended to help understand quota, but it might provide numbers that are not accurate. The Azure AI Studio or the [Azure OpenAI portal](https://oai.azure.com/), and our [docs of quota limits](https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits) would be the source of truth.
87
+
> This script is intended to help understand quota, but it might provide numbers that are not accurate. The Azure AI Studio or the [Azure OpenAI portal](https://oai.azure.com/), and our [docs of quota limits](https://learn.microsoft.com/azure/ai-services/openai/quotas-limits) would be the source of truth.
2. **Open the _provision.yaml_ file** that is located in the `provisioning` directory
93
+
1. **Open the *provision.yaml* file** that is located in the `provisioning` directory
91
94
1. There are notes in the file to help you.
92
-
3. **Input all your desired fields**
95
+
1. **Input all your desired fields**
93
96
1. Note that you can either specify existing resources, or your desired names for new resources. If you are specifying existing resources, you can find the details you need in the Azure AI Studio project view.
94
97
1. Make sure you select a location and deployments you have quota for.
95
-
1. **Run the _provision.py_ script**
96
-
1. If you want to see the provisioning plan (what _would_ be provisioned given your `provision.yaml` specifications, without actually provisioning anything), run the below script with the `--show-only` flag.
98
+
1. **Run the *provision.py* script**
99
+
1. If you want to see the provisioning plan (what *would* be provisioned given your `provision.yaml` specifications, without actually provisioning anything), run the below script with the `--show-only` flag.
97
100
1. This script will output a .env in your src/ directory with all of your specified resources, which will be referenced by the rest of the sample code.
98
101
99
102
``` bash
@@ -103,7 +106,6 @@ You can find the details you need for existing resources in the top-right projec
103
106
104
107
The script will check whether the resources you specified exist, otherwise it will create them. It will then construct a .env for you that references the provisioned or referenced resources, including your keys. Once the provisioning is complete, you'll be ready to move to step 3.
105
108
106
-
107
109
## Step 3: Explore prompts
108
110
109
111
This sample repository contains a sample chat prompty file you can explore. This will let you verify your environment is set up to call your model deployments.
Copy file name to clipboardExpand all lines: src/evaluation/evaluation_dataset.jsonl
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
{"chat_input": "Which camping table holds the most weight?", "truth": "The Adventure Dining Table has a higher weight capacity than all of the other camping tables mentioned"}
3
3
{"chat_input": "How much do the TrailWalker Hiking Shoes cost? ", "truth": "The Trailewalker Hiking Shoes are priced at $110"}
4
4
{"chat_input": "What is the proper care for trailwalker hiking shoes? ", "truth": "After each use, remove any dirt or debris by brushing or wiping the shoes with a damp cloth."}
5
-
{"chat_input": "What brand is for TrailMaster tent? ", "truth": "OutdoorLiving"}
5
+
{"chat_input": "What brand is TrailMaster tent? ", "truth": "OutdoorLiving"}
6
6
{"chat_input": "How do I carry the TrailMaster tent around? ", "truth": " Carry bag included for convenient storage and transportation"}
7
7
{"chat_input": "What is the floor area for Floor Area? ", "truth": "80 square feet"}
8
8
{"chat_input": "What is the material for TrailBlaze Hiking Pants?", "truth": "Made of high-quality nylon fabric"}
9
9
{"chat_input": "What color does TrailBlaze Hiking Pants come in?", "truth": "Khaki"}
10
-
{"chat_input": "Cant he warrenty for TrailBlaze pants be transfered? ", "truth": "The warranty is non-transferable and applies only to the original purchaser of the TrailBlaze Hiking Pants. It is valid only when the product is purchased from an authorized retailer."}
11
-
{"chat_input": "How long are the TrailBlaze pants under warrenty for? ", "truth": " The TrailBlaze Hiking Pants are backed by a 1-year limited warranty from the date of purchase."}
10
+
{"chat_input": "Can the warrenty for TrailBlaze pants be transfered? ", "truth": "The warranty is non-transferable and applies only to the original purchaser of the TrailBlaze Hiking Pants. It is valid only when the product is purchased from an authorized retailer."}
11
+
{"chat_input": "How long are the TrailBlaze pants under warranty for? ", "truth": " The TrailBlaze Hiking Pants are backed by a 1-year limited warranty from the date of purchase."}
12
12
{"chat_input": "What is the material for PowerBurner Camping Stove? ", "truth": "Stainless Steel"}
13
13
{"chat_input": "Is France in Europe?", "truth": "Sorry, I can only queries related to outdoor/camping gear and equipment"}
0 commit comments