This script allows users to convert their notes into flashcards with ChatGPT 3.5. The flashcards are formatted to easily import into AnkiWeb.
-
Install requirements with
pip install -r requirements.txt
-
Add your OpenAI Access Key to
.env
file.
OPENAI_API_KEY=<your openai api key>
- Where do I find my API Key?
- Please note, OpenAI will not work until Billing is enabled on the account.
-
Copy notes into
flashcards_input.txt
file. -
Run command
python3 create_anki_flashcards.py
. This will generate aflashcards_export.txt
file. -
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
- Add commandline args to allow for different flashcard formats
- Add testing
- Turn into a Lambda function (?)