A fast, terminal application that leverages Google's Gemini AI to generate flashcards/study notes with ease. It takes a PDF file as input, uses OCR to extract the text out of the PDF file, and uses detailed prompts to generate useful flashcards.
There are a couple things you need before using this program.
- Node.js --> Download it here!
- Google Gemini API key --> Get one here!
- GhostScript (You can install it locally or globally) --> download it here or here for Mac!
- Optional: Text Editor (I recommend Visual Studio Code) --> Download it here!
- Clone the repository -->
git clone https://github.com/KabirBose/Flashcard-Generator
- Enter the directory with your terminal -->
cd /YOUR/PATH/TO/flashcard-generator
- Install all the dependencies -->
npm i
ornpm install
- Add PDF files that you want to convert into flashcards into the
pdfs
folder - Run the program -->
npm run dev
Here is an example of the input (a PDF file):
The output file (in Markdown language):
Thank you to the developers of Tesseract, GhostScript, Google Gemini, and Node-PDF-OCR.