microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.59k stars 2.49k forks source link

simple script to collect data based on question answer pairs #783

Closed mhurst-microsoft closed 5 months ago

mhurst-microsoft commented 5 months ago

Motivation and Context

A simple script to collect responses from OYD through the sdk (reusing the app.py module code) for evaluation.

Description

The script a) sets up the client simply by using the .env settings identical to those used in the web app; b) loops over a json file of questions; c) collects the responses from the OYD endpoint and d) formats them as required by AI Studio's evaluation system.

Contribution Checklist