Skip to content

AI4ALL-Official/GitHub_Pages_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Biases in ChatGPT and How to Fix Them

Uncovered and meticulously analyzed three distinct biases present in ChatGPT, employing advanced Python techniques and data analysis methodologies, all within AI4ALL's cutting-edge AI4ALL Ignite accelerator.

Problem Statement

Given the substantial daily output of responses, the identification and mitigation of ChatGPT's biases become critical, safeguarding both the multitude of users and the far-reaching consequences they may influence.

Key Results

  1. Recorded over 1,000 unique prompts and their responses generated by ChatGPT
  2. Identified three biases in ChatGPT's responses
    • When prompted about this world event
    • When prompted about this field of science
    • When prompted about this political party

Methodologies

To accomplish this, we utilized the OpenAI API to interact with ChatGPT, and we designed a custom Python script to generate diverse prompts and collect corresponding responses. The data was then processed and analyzed using pandas, enabling us to detect patterns and biases in the AI model's outputs. Engineered a Python script to generate over 1,000 prompts and elicit their responses from ChatGPT, utilizing pandas to collect the data. When prompted for solutions to this specific relevant crisis, nearly 80% of ChatGPT's responses promoted a certain worldview.

Data Sources

Kaggle Dataset: chatgpt_data

Technologies Used

  • Python
  • pandas
  • OpenAI API

Authors

This project was completed in collaboration with:

Releases

No releases published

Packages

No packages published

Languages