Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marlene ignite updates #309

Open
wants to merge 107 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
5505ed9
change to azure-ai-evaluation and add contentsafetyevaluator
slister1001 Oct 1, 2024
a709b50
fix model config
slister1001 Oct 1, 2024
44462e7
pass in proper env vars
slister1001 Oct 2, 2024
6cc3ecd
update model config in evaluators
slister1001 Oct 2, 2024
fe15dbb
differentiate between configs for aoai and rai evals
slister1001 Oct 16, 2024
9a7d947
fix aoai config
slister1001 Oct 16, 2024
539b830
updates
slister1001 Oct 17, 2024
dc8fb21
updates to version and model for regional availabilitiy
slister1001 Oct 18, 2024
10ad887
remove unnecessary additions
slister1001 Oct 18, 2024
541fca6
Merge branch 'main' of https://github.com/slister1001/contoso-creativ…
slister1001 Oct 18, 2024
537c69e
Merge pull request #212 from slister1001/main
marlenezw Oct 25, 2024
7726a0b
updating evals and gpt versions.
marlenezw Oct 28, 2024
18a242d
Merge pull request #238 from Azure-Samples/marlenes_updates
marlenezw Oct 28, 2024
dc74db5
Merge pull request #239 from Azure-Samples/main
marlenezw Oct 28, 2024
6cfaf36
Update README.md
marlenezw Oct 28, 2024
a3ec658
move to eastus for dalle3
marlenezw Oct 30, 2024
a5672d6
adding dalle3
marlenezw Oct 30, 2024
2c67383
changing evals to 4o
marlenezw Oct 30, 2024
af5503e
adding designer.
marlenezw Oct 31, 2024
b60f919
Merge branch 'ignite2024' into designer
marlenezw Nov 1, 2024
1013d2b
evaluators
marlenezw Nov 1, 2024
f859540
Merge remote-tracking branch 'refs/remotes/origin/designer' into desi…
marlenezw Nov 1, 2024
50c93d8
reverting changes
marlenezw Nov 1, 2024
dd539b0
improving design of webapp
marlenezw Nov 1, 2024
0be1b25
updating readme.
marlenezw Nov 1, 2024
2242ec7
Merge pull request #242 from Azure-Samples/designer
marlenezw Nov 1, 2024
c54db63
switching to sweden central and adding individual safety evals.
marlenezw Nov 1, 2024
1e63771
infra changes.
marlenezw Nov 1, 2024
3e2ee00
Merge pull request #243 from Azure-Samples/designer
marlenezw Nov 1, 2024
0bfbd4d
update tracing, add aspire, update ai studio type
cassiebreviu Nov 5, 2024
a20e43a
comment out dalle and designer becuase of region availability
cassiebreviu Nov 6, 2024
0cc7ed3
delete images.tsx
cassiebreviu Nov 6, 2024
19b347e
remove tracing import
cassiebreviu Nov 6, 2024
638f549
image content saftey
marlenezw Nov 7, 2024
f1ddc0e
add testing dataset
cassiebreviu Nov 7, 2024
fd4d26b
Update creativeevaldataset.jsonl
cassiebreviu Nov 7, 2024
ab98150
update reqs
cassiebreviu Nov 8, 2024
ba6e63d
add local tracing back
cassiebreviu Nov 8, 2024
f5b2f4b
fix eval key error
cassiebreviu Nov 8, 2024
92f0cc1
[Evaluation] Upload results to AI Studio, remote evaluation, custom e…
slister1001 Nov 11, 2024
2d3d676
add AZURE_AI_PROJECT_NAME to pipeline (#251)
cassiebreviu Nov 11, 2024
116521f
Update evaluate.yml for AZURE_AI_PROJECT_NAME (#252)
YusakuNo1 Nov 11, 2024
2a09963
ai project fix (#253)
cassiebreviu Nov 11, 2024
de06509
adding image evaluation
marlenezw Nov 11, 2024
dd20f20
Merge pull request #254 from marlenezw/image_evals_updated
marlenezw Nov 11, 2024
9dc406f
Update evaluate.yml
cassiebreviu Nov 12, 2024
72090c3
Update requirements.txt for azureml-mlflow
YusakuNo1 Nov 12, 2024
9d43982
adding changes for image evals.
marlenezw Nov 12, 2024
e70f5b4
add validators library.
marlenezw Nov 12, 2024
9c977b7
Merge branch 'ignite2024' into new_image_evals
marlenezw Nov 12, 2024
832aaa5
Merge pull request #255 from marlenezw/new_image_evals
marlenezw Nov 12, 2024
77716ae
Update evaluators.py to disable evaluate result artifact upload
YusakuNo1 Nov 13, 2024
3bb3e9f
Add AZURE_LOCATION to env var
YusakuNo1 Nov 13, 2024
6616b12
No evaluation result logging for ImageEvaluator
YusakuNo1 Nov 13, 2024
5e8fb82
reverting changes to project_scope.
marlenezw Nov 13, 2024
77a4338
Merge pull request #257 from marlenezw/reverting_project_scope
marlenezw Nov 13, 2024
52e273d
adding some changes to outputs for evaluators.
marlenezw Nov 13, 2024
fad663c
Merge pull request #258 from marlenezw/evals
marlenezw Nov 13, 2024
a0e9d0a
adding blob storage in post provision.
marlenezw Nov 13, 2024
0d3b413
Merge pull request #259 from marlenezw/ignite2024
marlenezw Nov 13, 2024
1ebceff
merge
marlenezw Nov 13, 2024
6b87ee0
adding changes for gh actions.
marlenezw Nov 13, 2024
1787806
adding evals for gh.
marlenezw Nov 13, 2024
9302f02
Merge pull request #261 from marlenezw/evals_gh
marlenezw Nov 13, 2024
5e5ef90
adding eval tables to gh action.
marlenezw Nov 13, 2024
f20795d
Merge pull request #262 from marlenezw/eval_image
marlenezw Nov 13, 2024
9d8ad8b
import dotenv
marlenezw Nov 13, 2024
11fd06e
Merge pull request #263 from marlenezw/dotenv
marlenezw Nov 13, 2024
9942b2b
Add tracing and debugging support (#256)
sudivate Nov 14, 2024
3e41265
add ai project name for gh workflo (#264)
cassiebreviu Nov 14, 2024
dbd7f16
Update evaluate.yml
cassiebreviu Nov 14, 2024
4b8548f
Enable GH action auto-run for branch ignite2024
YusakuNo1 Nov 14, 2024
1cdfdec
fix aca bicep (#267)
cassiebreviu Nov 14, 2024
c926b3e
fix 4o model version
cassiebreviu Nov 14, 2024
38cf2a9
Fix AI project connectin string and update azure identity
sudivate Nov 14, 2024
73fbdd0
add perm guidence to readme, update project connection strnig
cassiebreviu Nov 15, 2024
9d10970
Run genai-evals
YusakuNo1 Nov 16, 2024
defbf56
Update output format
YusakuNo1 Nov 16, 2024
4c78739
Run evaluation for pull request
YusakuNo1 Nov 16, 2024
7ef38e0
Add empty ground_truth
YusakuNo1 Nov 16, 2024
73dcef0
Combine with existing evaluations
YusakuNo1 Nov 16, 2024
a5319cc
image eval changes
marlenezw Nov 16, 2024
9e2f0f1
removing testing data.
marlenezw Nov 16, 2024
8b39e22
removing some images and updating aiyaml
marlenezw Nov 16, 2024
505c464
Merge branch 'ignite2024' into updated_image_evals
marlenezw Nov 16, 2024
a388e1f
sweden_centra;
marlenezw Nov 16, 2024
e69d24f
Merge pull request #272 from marlenezw/updated_image_evals
marlenezw Nov 16, 2024
5f4e833
Update evaluate.py
marlenezw Nov 16, 2024
b7f8548
Update evaluators.py
marlenezw Nov 16, 2024
9bb360e
Merge pull request #273 from marlenezw/patch-1
marlenezw Nov 16, 2024
09b247b
Merge pull request #271 from Azure-Samples/users/daviwu/ignite2024
marlenezw Nov 16, 2024
40726bc
Merge branch 'ignite2024' into sudivate/ignite-creative-writer
marlenezw Nov 17, 2024
1217120
Merge pull request #268 from sudivate/sudivate/ignite-creative-writer
marlenezw Nov 17, 2024
43784f4
upload button fixes.
marlenezw Nov 17, 2024
906415e
adding images.
marlenezw Nov 17, 2024
e014484
Update evaluate.py
marlenezw Nov 17, 2024
9e67bd8
Merge pull request #274 from marlenezw/upload_button
marlenezw Nov 17, 2024
2d95d3c
Update evaluate.py to evaluate multiple images
marlenezw Nov 18, 2024
4f131a7
Update evaluate.yml
marlenezw Nov 18, 2024
a49b4e4
Merge pull request #275 from marlenezw/patch-2
marlenezw Nov 18, 2024
fda42ca
Update evaluate.py
marlenezw Nov 18, 2024
bea79e2
adding in new code for multi-image eval
marlenezw Nov 18, 2024
04e741f
Merge branch 'ignite2024' into multi-image
marlenezw Nov 18, 2024
399c658
Merge pull request #276 from marlenezw/multi-image
marlenezw Nov 18, 2024
b5c5692
Update evaluate.py
marlenezw Nov 18, 2024
8c72eb5
Update evaluate.py
marlenezw Nov 18, 2024
aae204f
updates to move to gpt-4o and use eastus2
marlenezw Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ RUN sudo apt-get update && sudo apt-get install -y \
&& sudo apt-get clean \
&& sudo rm -rf /var/lib/apt/lists/*

# COPY packages folder
COPY packages packages

# Copy requirements.txt and install the Python packages
# Install keyring-related and IPython packages in the same layer to reduce the image size and build time
COPY requirements.txt .
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Creative Writing Assistant (ACA)",
"build": {
Expand Down Expand Up @@ -40,4 +40,4 @@
5173,
8000
]
}
}
1 change: 0 additions & 1 deletion .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
AZURE_OPENAI_API_VERSION: ${{ vars.AZURE_OPENAI_API_VERSION }}
AZURE_OPENAI_4_EVAL_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_4_EVAL_DEPLOYMENT_NAME }}
AZURE_OPENAI_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_DEPLOYMENT_NAME }}
AZURE_OPENAI_35_TURBO_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_35_TURBO_DEPLOYMENT_NAME }}
AZURE_OPENAI_NAME: ${{ vars.AZURE_OPENAI_NAME }}
AZURE_CONTAINER_REGISTRY_NAME: ${{ vars.AZURE_CONTAINER_REGISTRY_NAME }}
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
Expand Down
55 changes: 50 additions & 5 deletions .github/workflows/evaluate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
# Set this to the mainline branch you are using
branches:
- main
- ignite2024
pull_request:
# Run when pull requests are opened or updated
branches:
- main
- ignite2024

# Set up permissions for deploying with secretless Azure federated credentials
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
Expand All @@ -21,17 +27,21 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
AZURE_AI_PROJECT_NAME: ${{ vars.AZURE_AI_PROJECT_NAME }}
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
AZURE_OPENAI_ENDPOINT: ${{ vars.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_API_VERSION: ${{ vars.AZURE_OPENAI_API_VERSION }}
AZURE_OPENAI_4_EVAL_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_4_EVAL_DEPLOYMENT_NAME }}
AZURE_OPENAI_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_DEPLOYMENT_NAME }}
AZURE_OPENAI_35_TURBO_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_35_TURBO_DEPLOYMENT_NAME }}
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
AZURE_SEARCH_ENDPOINT: ${{ vars.AZURE_SEARCH_ENDPOINT }}
AZURE_OPENAI_NAME: ${{ vars.AZURE_OPENAI_NAME }}
BING_SEARCH_ENDPOINT: ${{ vars.BING_SEARCH_ENDPOINT }}
BING_SEARCH_KEY: ${{ secrets.BING_SEARCH_KEY }}
EVAL_CONFIG_FILE_PATH: ${{ github.workspace }}/evaluate-config.json
GENAI_EVALS_INPUT_FILE_PATH: ${{ github.workspace }}/src/api/evaluate/eval_results.jsonl
GENAI_EVALS_OUTPUT_FILE_PATH: ${{ github.workspace }}/src/api/evaluate/genai_evals_data.jsonl

steps:
- name: checkout repo content
Expand Down Expand Up @@ -73,13 +83,48 @@ jobs:
with:
name: eval_result
path: ./src/api/evaluate/eval_results.jsonl

- name: Upload image eval results as build artifact
uses: actions/upload-artifact@v4
with:
name: eval_image_result
path: ./src/api/evaluate/image_eval_results.jsonl

- name: Convert to microsoft/genai-evals Data Format
run: |
python -m src.api.evaluate.genai_evals_convert ${{ env.GENAI_EVALS_INPUT_FILE_PATH }} ${{ env.GENAI_EVALS_OUTPUT_FILE_PATH }}

- name: Prepare AI evaluation configuration file
run: |
cat > ${{ env.EVAL_CONFIG_FILE_PATH }}<<EOF
{
"data": "${{ env.GENAI_EVALS_OUTPUT_FILE_PATH }}",
"evaluators": {
"coherence": "CoherenceEvaluator",
"fluency": "FluencyEvaluator"
},
"ai_model_configuration": {
"type": "azure_openai",
"azure_endpoint": "${{ vars.AZURE_OPENAI_ENDPOINT }}",
"azure_deployment": "${{ vars.AZURE_OPENAI_DEPLOYMENT_NAME }}",
"api_version": "${{ vars.AZURE_OPENAI_API_VERSION }}"
}
}
EOF

- name: GitHub Summary Step
- name: Text Evaluation Summary
id: run-ai-evaluation
uses: microsoft/genai-evals@users/daviwu/ignite2024
with:
evaluate-configuration: ${{ env.EVAL_CONFIG_FILE_PATH }}
show-summary: true
show-raw-output: true

- name: Image Evaluation Summary
if: ${{ success() }}
working-directory: ./src/api
run: |
echo "" >> $GITHUB_STEP_SUMMARY

echo "📊 Promptflow Evaluation Results" >> $GITHUB_STEP_SUMMARY
cat evaluate/eval_results.md >> $GITHUB_STEP_SUMMARY

echo "# 📊 Image Evaluation Results" >> $GITHUB_STEP_SUMMARY
cat evaluate/image_eval_results.md >> $GITHUB_STEP_SUMMARY
29 changes: 28 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
{
"name": "Python: FastAPI",
"type": "debugpy",
"request": "launch",
Expand All @@ -28,6 +28,33 @@
"module": "api.evaluate.evaluate",
"cwd": "${workspaceFolder}/src/api",
"justMyCode": true
},
{
"name": "Web",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/src/web/node_modules/vite/bin/vite.js",
"args": ["--host"],
"cwd": "${workspaceFolder}/src/web",
"outFiles": ["${workspaceFolder}/src/web/dist/**/*.js"],
"sourceMaps": true,
"skipFiles": ["<node_internals>/**"],
"serverReadyAction": {
"action": "debugWithEdge",
"killOnServerStop": true,
"pattern": "Local: (http://localhost:\\d+)",
"uriFormat": "%s",
"webRoot": "${workspaceFolder}/src/web"
}
}
],
"compounds": [
{
"name": "Start API(backend) and Web(fronted)",
"configurations": [
"Python: FastAPI",
"Web"
]
}
]
}
41 changes: 30 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ description: Using Azure OpenAI agent with Python, integrating Bing Search API a

![App preview](images/app_preview.png)

![Agent workflow preview](images/agent.png)
![Agent workflow preview](images/updated_app_image.png)

Contoso Creative Writer is an app that will help you write well researched, product specific articles. Enter the required information and then click "Start Work". To watch the steps in the agent workflow select the debug button in the bottom right corner of the screen. The result will begin writing once the agents complete the tasks to write the article.

Expand All @@ -68,8 +68,8 @@ This project template provides the following features:

* **Azure account**. If you're new to Azure, [get an Azure account for free](https://azure.microsoft.com/free/cognitive-search/) and you'll get some free Azure credits to get started. See [guide to deploying with the free trial](docs/deploy_lowcost.md).
* **Azure subscription with access enabled for the Azure OpenAI Service**. You can request access with [this form](https://aka.ms/oaiapply). If your access request to Azure OpenAI Service doesn't match the [acceptance criteria](https://learn.microsoft.com/legal/cognitive-services/openai/limited-access?context=%2Fazure%2Fcognitive-services%2Fopenai%2Fcontext%2Fcontext), you can use [OpenAI public API](https://platform.openai.com/docs/api-reference/introduction) instead.
- Ability to deploy `gpt-35-turbo-0613`,`gpt-4-1106-Preview` and `gpt-4o-2024-05-13`.
- We recommend using Canada East, as this region has access to all models and services required.
- Ability to deploy `gpt-4o` and `gpt-4o-mini`.
- We recommend using `East US 2`, as this region has access to all models and services required.
* **Azure subscription with access enabled for [Bing Search API](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)**
* **Azure subscription with access enabled for [Azure AI Search](https://azure.microsoft.com/en-gb/products/ai-services/ai-search)**

Expand Down Expand Up @@ -105,12 +105,14 @@ The easiest way to get started is GitHub Codespaces, since it will setup all the
azd up
```

You will be prompted to select some details about your deployed resources, including location. As a reminder we recommend Canada East as the region for this project.
You will be prompted to select some details about your deployed resources, including location. As a reminder we recommend `East US 2` as the region for this project.
Once the deployment is complete you should be able to scroll up in your terminal and see the url that the app has been deployed to. It should look similar to this
`Ingress Updated. Access your app at https://env-name.codespacesname.eastus2.azurecontainerapps.io/`. Navigate to the link to try out the app straight away!

5. Once the above steps are completed you can [test the sample](#testing-the-sample).

NOTE: If the api is failing due to permissions, add the AppID as Contributor in the IAM for the Resource Group.

### VS Code Dev Containers

A related option is VS Code Dev Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers):
Expand Down Expand Up @@ -146,7 +148,7 @@ A related option is VS Code Dev Containers, which will open the project in your
1. Create a new folder and switch to it in the terminal, then run this command to download the project code:

```shell
azd init -t agent-openai-python-prompty
azd init -t contoso-creative-writer
```
Note that this command will initialize a git repository, so you do not need to clone this repository.

Expand Down Expand Up @@ -185,7 +187,7 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
azd up
```

This project uses `gpt-35-turbo-0613`,`gpt-4-1106-Preview` and `gpt-4o-2024-05-13` which may not be available in all Azure regions. Check for [up-to-date region availability](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#standard-deployment-model-availability) and select a region during deployment accordingly. We recommend using Canada East for this project.
This project uses `gpt-4o` and `gpt-4o-mini`. which may not be available in all Azure regions. Check for [up-to-date region availability](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#standard-deployment-model-availability) and select a region during deployment accordingly. We recommend using `East US 2` for this project.

After running azd up, you may be asked the following question during `Github Setup`:

Expand Down Expand Up @@ -262,7 +264,7 @@ To test the sample:
To activate the Prompty tracing server:

```
export LOCAL_TRACING=true
export LOCAL_TRACING_ENABLED=true
```

Then start the orchestrator:
Expand All @@ -277,7 +279,7 @@ This shows you all the Python functions that were called in order to generate th

## Evaluating results

Contoso Creative Writer uses evaluators to assess application response quality. The 4 metrics the evaluators in this project assess are Coherence, Fluency, Relevance and Groundedness. A custom `evaluate.py` script has been written to run all evaulations for you.
Contoso Creative Writer uses evaluators to assess application response quality. The 5 metrics the evaluators in this project assess are Coherence, Fluency, Relevance, Groundedness and Content Safety. A custom `evaluate.py` script has been written to run all evaulations for you.

1. To run the script run the following commands:

Expand All @@ -286,7 +288,7 @@ cd ./src/api
python -m evaluate.evaluate
```

- Check: You see scores for Coherence, Fluency, Relevance and Groundedness.
- Check: You see scores for Coherence, Fluency, Relevance, Groundedness and Content Safety.
- Check: The scores are between 1 and 5


Expand All @@ -303,13 +305,30 @@ To set up CI/CD with GitHub actions on your repository, run the following comman
```shell
azd pipeline config
```
Add permission to Service Principal that is created:
```
Azure AI Administrator
AzureML Data Scientist
Cognitive Services OpenAI Contributor
Contributor
Key Vault Administrator
Key Vault Contributor
Key Vault Reader
Search Index Data Contrbutor
Storage Blob Data Contributor
```

## Guidance

### Region Availability

This template uses `gpt-35-turbo-0613`,`gpt-4-1106-Preview` and `gpt-4o-2024-05-13` which may not be available in all Azure regions. Check for [up-to-date region availability](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#standard-deployment-model-availability) and select a region during deployment accordingly
* We recommend using Canada East
This template uses `gpt-4o` and `gpt-4o-mini`. which may not be available in all Azure regions. Check for [up-to-date region availability](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#standard-deployment-model-availability) and select a region during deployment accordingly
* We recommend using `East US 2`

We use Risk and Safety Evaluators with region availability [here](https://learn.microsoft.com/en-gb/azure/ai-studio/how-to/develop/evaluate-sdk#region-support)
We use AI Content Safety Evaluations,including image evaluations with region availability [here](https://learn.microsoft.com/en-us/azure/ai-services/content-safety/overview#region-availability)

For the most comprehensive use we `East US 2`

### Costs

Expand Down
9 changes: 9 additions & 0 deletions api-test.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

post http://127.0.0.1:8000/api/article HTTP/1.1
Content-Type: application/json

{
"research": "Can you find the latest camping trends and what folks are doing in the winter?",
"products": "Can you use a selection of tents and sleeping bags as context?",
"assignment": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
}
3 changes: 1 addition & 2 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pipeline:
- AZURE_RESOURCE_GROUP
- AZURE_OPENAI_4_EVAL_DEPLOYMENT_NAME
- AZURE_OPENAI_DEPLOYMENT_NAME
- AZURE_OPENAI_35_TURBO_DEPLOYMENT_NAME
- AZURE_SEARCH_ENDPOINT
- BING_SEARCH_ENDPOINT
- AZURE_OPENAI_NAME
Expand All @@ -47,4 +46,4 @@ pipeline:
- AZURE_SEARCH_NAME
- WEB_SERVICE_ACA_URI
secrets:
- BING_SEARCH_KEY
- BING_SEARCH_KEY
57 changes: 57 additions & 0 deletions data/creativeevaldataset.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
{
"research_context": "Can you find the latest camping trends and what folks are doing in the winter?",
"product_context": "Can you use a selection of tents and sleeping bags as context?",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "Can you investigate the rise of glamping and its impact on traditional camping?",
"product_context": "Include examples of luxury tents and high-end sleeping bags in your discussion.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "What are the latest trends in family camping and how are families choosing their gear?",
"product_context": "Use a variety of family-sized tents and sleeping bags as context.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "Can you analyze the trend of digital detox camping and how it influences gear choices?",
"product_context": "Include examples of tents and sleeping bags that promote a tech-free experience.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "Can you delve into the trend of adventure camping and how it influences gear choices for extreme conditions?",
"product_context": "Use a selection of rugged tents and specialized sleeping bags as context.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "What are the current trends in pet-friendly camping and how are campers choosing gear that accommodates their furry friends?",
"product_context": "Include examples of pet-friendly tents and sleeping bags.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "What are the emerging trends in camping technology and how are they changing the way campers choose their gear?",
"product_context": "Include examples of tech-integrated tents and sleeping bags.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "Can you explore the trend of eco-conscious hiking and how it influences gear choices?",
"product_context": "Use a selection of sustainable hiking apparel and gear as context.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "What are the current trends in solo hiking and how are individuals choosing their gear for safety and comfort?",
"product_context": "Include examples of solo-friendly tents and compact cooking gear.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "Can you analyze the rise of family hiking and how families are selecting gear that accommodates all ages?",
"product_context": "Use a variety of family-sized backpacks and kid-friendly hiking gear as examples.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
},
{
"research_context": "What are the emerging trends in hiking technology and how are they changing the way hikers choose their gear?",
"product_context": "Include examples of GPS devices and smart hiking apparel.",
"assignment_context": "Write a fun and engaging article that includes the research and product information. The article should be between 800 and 1000 words. Make sure to cite sources in the article as you mention the research not at the end."
}
]
Loading