Skip to content

An AI flashcard generator which uses the content of your clipboard to generate flashcards and then prompts you to confirm which cards to add to Anki.

License

Notifications You must be signed in to change notification settings

jorkle/flashcard_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI (OpenAI) Anki Flashcard Generator

Generates Anki flashcards from the information on the clipboard using OpenAI API and AnkiConnector addon.

help cli usage

Requirements

  1. Anki (Desktop application)
  2. AnkiConnector (Anki Addon)
  3. pipx (to install flashcard-gen)
  4. xclip installed
  5. Linux OS (untested on Windows)
  6. Ability to use OpenAI API

Install

  1. Install dependencies
  2. Install `flashcard-gen:
 pipx install "git+https://github.com/jorkle/flashcard_gen"
  1. Configure a keyboard shortcut in your desktop environments settings to execute the following:
~/.local/bin/flashcard-gen --api-key '<OPENAI-API-KEY' --anki-deck Bash --purpose '<PURPOSE>'
  1. Replace <PURPOSE> with the purpose for the flashcards. This is used in the prompt so that the AI creates flashcards that focus on the purpose that you specified.
  2. Replace <OPENAI-API-KEY with your OpenAI API Key.

Demo

Demo video

Usage

  1. Open Anki (desktop app)
  2. Find some text information that you want to create flashcards for.
  3. Copy the text information to your clipboard
  4. Press the hotkey that you binded the flashcard-gen command to in your desktop environment.
  5. Wait a few seconds while it generates flashcards. It will open the "Add flashcard" dialog within a few seconds.
  6. Either accept the flash card as is or tweak it to your liking. Once you add the flash card. Click the "Continue" button in the dialog popup box.
  7. Repeat.. until all of the flashcards were either added or skipped.

About

An AI flashcard generator which uses the content of your clipboard to generate flashcards and then prompts you to confirm which cards to add to Anki.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages