Smoothex / BabyGPT

A basic AI chat using the OpenAI API and its GPT-3 models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BabyGPT - a simple project for me to play around with OpenAI's API

Prerequisites

  • At least Python 3.8
  • OpenAI API key - you can generate one, by creating an account, then navigating to Personal > View API key > Create new secret key, then save the API key to a file named .env in a variable called OPENAI_API_KEY
  • pip install openai - installs the OpenAI library
  • pip install python-dotenv - allows the application to fetch environmental variables from a .env file

Language models performance evaluation

In their documentation, OpenAI advertise text-davinci-003 as the most capable language model and text-ada-001 as the fastest one. I wanted to see how this translates into numbers, so I used the Natural Language Toolkit (nltk) to get the BLEU score of each language model.

About

A basic AI chat using the OpenAI API and its GPT-3 models


Languages

Language:Python 100.0%