Skip to content

Automatically generate Anki Flashcards from your PDF files with LLM (ChatGPT in this case) to help you study.

License

Notifications You must be signed in to change notification settings

PromtEngineer/Anki_FlashCard_Generator

Repository files navigation

Anki Card Generator from PDF Files

This repo will generate Flash cards that you can use in Anki for learning.

Environment Setup

In order to set your environment up to run the code here, first install all requirements:

pip install -r requirements.txt

Generate Flash Cards.

Simply put your PDF files in the SOURCE_DOCUMENTS folder.

Run the following command to process your data.

python Anki_flashcards_creator.py

It will generated a flashcards.txt file that you can import into Anki.

Things to Remember.

This will divide your files into smaller chunks. Sometimes because of the nature of the prompt and LLMs, you will not get the exact format that you ask it for. You might have to play around with the prompt or write a small script to put it in the proper format.

About

Automatically generate Anki Flashcards from your PDF files with LLM (ChatGPT in this case) to help you study.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages