-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Adding Indian Women Menstrual Health Chatbot Eval #1430
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. It seems like there is some confusion here. The purpose of these evals is to evaluate the performance of different versions of LLMs in order to quantitatively measure how they perform for different use cases. The data in this eval seems like some sort of training data for a chatbot. Can you please clarify what the intention is here? Is it for evaluation purposes, or do you want to train a custom model for some specific use case?
If the intention is to create an evaluation for the model, kindly read the documentation about the format and evaluation methods and prepare the dataset properly. You can also have a look at other evals to get a good idea about this.
If the intention is to create a customized chatbot, you can use fine-tuning APIs for this purpose and create a fine-tuned model for your chatbot.
Kindly let me know about the exact purpose, and I can guide you in the right direction.
Hello ***@***.****
Our key test case - contextualizing answers to India in terms of what foods
grow here, the cultural context of health.
We have added this in prompt for the GPT but it continues to give answers
more relevant for the US context.
The evals file we submitted shares questions our users asked and ideal
answers by our experts contextualized to India.
Please let me know how we can improve the data-set to submit for the evals.
This parameter of contextualization to the country is important for our
overall performance as a menstrual health chatbot hence cannot be solved
just with fine-tuning.
Look forward to your input.
Best,
Saraswati
…On Mon, 15 Jan 2024 at 11:22, 'Usama' via Founders Unit ***@***.***> wrote:
***@***.**** commented on this pull request.
Thanks for the contribution. It seems like there is some confusion here.
The purpose of these evals is to evaluate the performance of different
versions of LLMs in order to quantitatively measure how they perform for
different use cases. The data in this eval seems like some sort of training
data for a chatbot. Can you please clarify what the intention is here? Is
it for evaluation purposes, or do you want to train a custom model for some
specific use case?
If the intention is to create an evaluation for the model, kindly read the
documentation <https://github.com/openai/evals/tree/main/docs> about the
format and evaluation methods and prepare the dataset properly. You can
also have a look at other evals to get a good idea about this.
If the intention is to create a customized chatbot, you can use fine-tuning
APIs <https://platform.openai.com/docs/guides/fine-tuning> for this
purpose and create a fine-tuned model for your chatbot.
Kindly let me know about the exact purpose, and I can guide you in the
right direction.
—
Reply to this email directly, view it on GitHub
<#1430 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BETGCVSTKRLAUETCDMRLH4LYOS7Y3AVCNFSM6AAAAABAPYWFQ2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMRQHEZTKNRRHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
You received this message because you are subscribed to the Google Groups
"Founders Unit" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ***@***.***
To view this discussion on the web visit
https://groups.google.com/a/cranberry.fit/d/msgid/founders/openai/evals/pull/1430/review/1820935618%40github.com
<https://groups.google.com/a/cranberry.fit/d/msgid/founders/openai/evals/pull/1430/review/1820935618%40github.com?utm_medium=email&utm_source=footer>
.
--
Best,
Saraswati Chandra
Co-founder
------------------------------
<https://wa.me/917022363062?text=Hi>
Support Our Journey by Sharing About Berry
Her companion for pain-free Periods & PMS.
Click/Scan this QR to chat with Berry on WhatsApp
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @.**** Our key test case - contextualizing answers to India in terms of what foods grow here, the cultural context of health. We have added this in prompt for the GPT but it continues to give answers more relevant for the US context. The evals file we submitted shares questions our users asked and ideal answers by our experts contextualized to India. Please let me know how we can improve the data-set to submit for the evals. This parameter of contextualization to the country is important for our overall performance as a menstrual health chatbot hence cannot be solved just with fine-tuning. Look forward to your input. Best, Saraswati
Thanks for clarifying. The purpose of this eval is to make sure that the assistant follows the provided instructions properly and provides the answer within the context as requested in the prompt.
Due to the nature of this task, methods like Includes
, Match
, or FuzzyMatch
will not work. I would recommend using the ModelGraded
evaluation method along with the closedqa
specs file. The model grading method is used to evaluate the completion using another model based on the provided specs file. The closedqa
method asks the model to evaluate the completion based on the provided criteria. You can set criteria like "Conciseness: If the answer is concise and strictly related to period, period pain, and PMS only, and in the context of India and Indian culture". You can add any appropriate criteria string you want.
Kindly have a look at the eval-templates.md file to get more information about various evaluation methods. You can also have a look at abstract2title, coqa-ex and non-compound-names evals to have a better idea about usage of closedqa
method.
Thank you for explaining and suggesting using 'closedqa' modelgraded eval. We have now used the same with the criteria set to checking if the answer was contextualized to India. In our evals we found that the answers were indeed not contextualized to India even after mentioning in the prompt. We obtained a result of 21/33 examples failing. We have committed the yaml file and jsonl dataset used for the same under 'Indian_Menstrual_Health_ChatBot-closedqa'. The most recent commit on 03/05/24 shows these changes. |
@phalgunagopal It seems like the mentioned commit hasn't been pushed to the repository yet. Kindly push the latest changes. |
Suggests Indian Context not maintained even after mentioning in System Prompt.
@usama-openai The closedQA commit has been pushed now. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks in good shape now. I'm approving this PR.
@jwang47 @katyhshi @andrew-openai @etr2460 Hello everyone, tagging to request review and approval of this PR. |
Thank you for contributing an eval!♥️
🚨 Please make sure your PR follows these guidelines, failure to follow the guidelines below will result in the PR being closed automatically. Note that even if the criteria are met, that does not guarantee the PR will be merged nor GPT-4 access be granted. 🚨
PLEASE READ THIS:
In order for a PR to be merged, it must fail on GPT-4. We are aware that right now, users do not have access, so you will not be able to tell if the eval fails or not. Please run your eval with GPT-3.5-Turbo, but keep in mind as we run the eval, if GPT-4 gets higher than 90% on the eval, we will likely reject it since GPT-4 is already capable of completing the task.
We plan to roll out a way for users submitting evals to see the eval performance on GPT-4 soon. Stay tuned! Until then, you will not be able to see the eval performance on GPT-4. Starting April 10, the minimum eval count is 15 samples, we hope this makes it easier to create and contribute evals.
Also, please note that we're using Git LFS for storing the JSON files, so please make sure that you move the JSON file to Git LFS before submitting a PR. Details on how to use Git LFS are available here.
Eval details 📑
Eval name
Indian Women Menstrual Health Chatbot
Eval description
Question and answers for indian women menstrual health chatbot responses verified by health researchers.
What makes this a useful eval?
The questions have been evaluated based on feedback from users and experts for being incomplete in accuracy and unhelpful. Experts are senior health researchers and doctors and questions are evaluated based on existing information available through publicly available guidelines, research and evidence papers. This spreadsheet lists out the questions where GPT response was not enough or not helpful, with the right responses and the reasons why the GPT response was not complete.
https://docs.google.com/spreadsheets/d/1LGW11xwapKGKvNUiVEHBybVT4oFMJ2gZdTw83UqtoYk/edit?usp=sharing
Criteria for a good eval ✅
Below are some of the criteria we look for in a good eval. In general, we are seeking cases where the model does not do a good job despite being capable of generating a good response (note that there are some things large language models cannot do, so those would not make good evals).
Your eval should be:
Basic
evals or theFact
Model-graded eval, or an exhaustive rubric for evaluating answers for theCriteria
Model-graded eval.If there is anything else that makes your eval worth including, please document it below.
Unique eval value
Eval is unique as it checks for medical accuracy and quality of contextualization for Indian women.
Eval structure 🏗️
Your eval should
evals/registry/data/{name}
evals/registry/evals/{name}.yaml
(For now, we will only be approving evals that use one of the existing eval classes. You may still write custom eval classes for your own cases, and we may consider merging them in the future.)
Final checklist 👀
Submission agreement
By contributing to Evals, you are agreeing to make your evaluation logic and data under the same MIT license as this repository. You must have adequate rights to upload any data used in an Eval. OpenAI reserves the right to use this data in future service improvements to our product. Contributions to OpenAI Evals will be subject to our usual Usage Policies (https://platform.openai.com/docs/usage-policies).
Email address validation
If your submission is accepted, we will be granting GPT-4 access to a limited number of contributors. Access will be given to the email address associated with the commits on the merged pull request.
Limited availability acknowledgment
We know that you might be excited to contribute to OpenAI's mission, help improve our models, and gain access to GPT-4. However, due to the requirements mentioned above and the high volume of submissions, we will not be able to accept all submissions and thus not grant everyone who opens a PR GPT-4 access. We know this is disappointing, but we hope to set the right expectation before you open this PR.
Submit eval
pip install pre-commit; pre-commit install
and have verified thatmypy
,black
,isort
,autoflake
andruff
are running when I commit and pushFailure to fill out all required fields will result in the PR being closed.
Eval JSON data
Since we are using Git LFS, we are asking eval submitters to add in as many Eval Samples (at least 5) from their contribution here:
View evals in JSON
Eval