Skip to content

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

Notifications You must be signed in to change notification settings

MackHalliday/chatgpt_to_anki_flashcards

Repository files navigation

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 (?)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages