This repo will generate Flash cards that you can use in Anki for learning.
In order to set your environment up to run the code here, first install all requirements:
pip install -r requirements.txtSimply put your PDF files in the SOURCE_DOCUMENTS folder.
Run the following command to process your data.
python Anki_flashcards_creator.pyIt will generated a flashcards.txt file that you can import into Anki.
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.