A plugin for Obsidian that generates Anki flashcards from your notes using Large Language Models (LLMs).
- LLM Support: Compatible with Google Gemini, OpenAI (ChatGPT), and local models via Ollama.
- Card Types:
- Basic: Question and Answer format.
- Cloze: Fill-in-the-blank cards.
- Type-In: Input fields for precise recall (e.g., values, formulas).
- Duplicate Prevention: Detects existing cards to prevent duplication during generation.
- Link Validation: Checks internal links (
[[Link]]) during generation. Broken links are converted to plain text to ensure Anki compatibility. - File Explorer: Optionally marks files containing generated cards with an icon.
- Analyzes note content to provide constructive feedback suited for medical/preclinical study contexts.
- Includes a chat interface for refining prompts or asking follow-up questions.
- AnkiConnect: Syncs cards directly to Anki. Requires the AnkiConnect add-on.
- Global Sync: Identification and synchronization of all unsynced cards in the vault.
- State Tracking: Visual indicators for sync status.
- Preview & Edit: Review and modify generated cards before syncing.
- Deck Management: Hierarchical view for selecting target decks.
- Manual Mode: Option to copy-paste card data if API limits are reached.
- Prerequisites:
- Anki
- AnkiConnect add-on for Anki.
- Plugin Installation:
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Create a folder named
t1il-anki-creatorin your.obsidian/plugins/directory. - Place the files in the folder.
- Enable the plugin in Obsidian settings.
- Download
- Insert Block: Add an Anki block to your note:
```anki-cards TARGET DECK: MyDeck - Generate: Use the generation buttons (Gemini, OpenAI, Auto) to create cards from the note content.
- Sync:
- Click Preview to edit or review cards.
- Click Sync to push cards to Anki.
- Click Feedback for content analysis.
Settings are available under Settings > Anki Generator:
- API Keys: enter keys for Google Gemini or OpenAI.
- Ollama: Configure the endpoint for local models.
- Prompts: Customize system prompts for generation and feedback.
- Anki Models: Map plugin outputs to specific Anki Note Types.
MIT