Anki add-on: AnkiInfinite

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. https://youtu.be/mhKHL5okRLk 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.

GitHub repository: ryankkien/anki-infinity
Languages: Python