/chatgpt_to_anki_flashcards

✅ Complete-ish Project: A python script create flashcards from notes and convert them into Anki flashcards using ChatGPT

Primary LanguagePython

Overview

This script allows users to convert their notes into flashcards with ChatGPT 3.5. The flashcards are formatted to easily import into AnkiWeb.

Basic Setup

  1. Install requirements with pip install -r requirements.txt

  2. Add your OpenAI Access Key to .env file.


OPENAI_API_KEY=<your openai api key>

How to Use

  1. Copy notes into flashcards_input.txt file.

    Step One

  2. Run command python3 create_anki_flashcards.py. This will generate a flashcards_export.txt file.

    Step Two

  3. Import new file flashcards_output.txt into AnkiWeb and select file seperator by semi-colon. For more on the importing process, please see Anki's documentation

    Step Three

TODO

  • Add commandline args to allow for different flashcard formats
  • Add testing
  • Turn into a Lambda function (?)