Skip to content

alecbw/GPT3-Create-Glossary-Definitions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPT3-Create-Glossary-Definitions

A wrapper with interactive CLI that provides light prompt programming to enable creating definitions of words for a glossary

Setup

Install pip (if necessary)

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py

Install the OpenAI library and a CLI helper library

pip install openai inquirer

Usage

You'll need a CSV of terms with the following header:

  • Terms

Start the execution with

python3 gpt_create_glossary_definitions.py

The rest is done by interactive CLI.

[?] What is the name of the file you want to read from?: example.csv
[?] What temperature do you want to set for the queries? Range is 0.0-1.0: 0.3
[?] How many samples do you want to manually categorize first? Range is 5-20: 8

[ you can either use the examples hardcoded in the .py file or use the CLI to label some of the input CSV's terms]

CMS (Content Management System)
[?] How would you define this word? Aim for a standard length (e.g. one sentence): A computer system that makes it easy to add/update/delete content (like your website’s images) as easily as possible

[then it will iterate through the full file, saving output to CSV every 25 rows]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages