GithubHelp home page GithubHelp logo

petezh / chatgpt-advice Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 22.85 MB

Reproduction code for "Taking Advice from ChatGPT"

Home Page: https://arxiv.org/abs/2305.11888

License: MIT License

Jupyter Notebook 58.39% Python 22.28% Shell 0.11% TeX 19.21%
chatgpt decision-science hci nlp

chatgpt-advice's Introduction

Taking Advice from ChatGPT

Last Updated on 05/20/2023

Author: Peter Zhang

Paper link

This study treats GPT models as an advisor in a judge-advisor system. We prompt InstructGPT using CoT on the MMLU benchmark and treat model output as "advice." In our lab study, 118 student participants answer 2,828 questions and recieve a chance to update their answer from the advice. We analyze factors affecting weight on advice and participant confidence in advice answers. This repository contains all of the collected data as well as code to reproduce the tables and figures in the paper.

Setup

  1. Install packages using the following:
pip install -r requirements.txt
  1. Add your OpenAI API key to ask_question.py.
  2. Download the MMLU benchmark from the official repository and move it to hendrycks_test

Data

Model Output

Survey Responses

  • The survey responses are downloaded from Qualtrics and placed in the survey_responses folder.
  • The updated survey responses from April 23rd are stored in `responses_0425.csv.

Scripts

The create_dataset.py script creates a sample of the MMLU benchmark. The evaluate.py script supports multiple types of prompting. The templates used in the evaluation script are located in the templates folder.

To reproduce the model evaluation, run cot_eval.sh from the main repository folder.

The clean_responses.py script preprocesses the survey responses and creates features used in the analysis.

Notebooks

Outputs

All figures and tables are output to their respective folders.

chatgpt-advice's People

Contributors

petezh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.