Anki GPT-4 Flashcard Generator Add-on
An Anki add-on that utilizes OpenAI’s GPT-4 API to generate flashcards based on user-specified topics, seamlessly integrating them into your existing Anki decks. This tool is designed to enhance your study sessions by creating personalized flashcards that match the style and structure of your current decks.
Features Deck and Note Type Selection: Choose the specific deck and note type (model) where the new flashcards will be added. Sample-Based Generation: The add-on fetches up to 5 sample cards from the selected deck to guide the AI in generating consistent and relevant flashcards. Topic Specification: Input any topic, and the AI will generate flashcards related to that subject. Customizable Quantity: Decide how many flashcards you want to generate in a single batch. Duplicate Detection: Automatically checks for duplicates to prevent adding flashcards with the same front field. Preview Feature: Optionally preview each generated flashcard before adding it to your deck. Tagging and Flagging: Generated flashcards are flagged (red) and tagged with “AI-generated” for easy identification. Error Logging: All errors are logged in a timestamped log file within the add-on’s directory for troubleshooting. Usage
Set Up OpenAI API Key:
Upon first use, the add-on will prompt you to enter your OpenAI API key. Obtain your API key from OpenAI’s website. The key is stored securely in a config.json file within the add-on’s directory.
Generate Flashcards:
In Anki, go to Tools > Generate Card(s).
Select a Deck:
Choose the deck where you want to add the new flashcards. If no decks are available, you’ll be prompted to create one first.
Select a Note Type:
If multiple note types are found in the deck, select the desired one. The add-on uses this note type to structure the new flashcards.
Enter Topic:
Input the topic you want the flashcards to cover.
Specify Number of Cards:
Enter the number of flashcards you wish to generate.
Preview Cards (Optional):
If the preview feature is enabled, you’ll have the option to review each card before it’s added. You can choose to accept or skip each card individually.
Review Generated Cards:
Generated cards are added to the selected deck. They are flagged in red and tagged with “AI-generated” for easy identification. Review them like any other flashcards during your study sessions.
Liên kết hỗ trợ
Reviews (1)
👍 2025-06-03
It works, but you should provide instructions on how to generate an openai api key because not everyone knows how to do that. Other issues, if the deck is empty it won’t let you add any cards in. It’d be nice if there was a way to edit a card using chat gpt, like improve the answer etc. I had a card that only had 1 card in it, and I asked for 50 cards, but it only gave me 18 of the 50 cards because it said the rest were duplicates which is strange.