Skip to content

Trying to use GPT-3 to answer questions about how to use emacs.

Notifications You must be signed in to change notification settings

patrick-sharp/emacs-documentation-gpt3

Repository files navigation

What this is

This repo is a python program that uses GPT-3 to answer questions about emacs the text editor.

It uses the OpenAI python API.

How to use

  1. Log in to OpenAI here: https://beta.openai.com/login/
  2. Acquire an API key here: https://beta.openai.com/account/api-keys
  3. Put the API key in a file called openai_api_key in the root of this repo.
  4. Make a python virtual environment with your favorite environment manager (e.g. venv or conda) and install the project's dependencies in that virtual environment. For example:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
  1. Edit the call to the answer_question function at the bottom of the file answer-question.py to contain the question you want to ask.
  2. Run python answer-question.py to see GPT3's answer to your question.

About

Trying to use GPT-3 to answer questions about how to use emacs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages