Anki AI is a powerful tool that leverages the chat completion API from ChatGPT to generate example sentences for your Anki notes. With Anki AI, you can quickly and easily enhance your Anki notes with relevant and useful example sentences, regardless of the language you are studying.
This was originally standalone app written in TypeScript and using AnkiConnect to add example to notes. You can see the old version here.
I created most of the plugin by prompting o3-mini-high model. Worked better than expected!
- Chat completion API from ChatGPT to generate sentences.
- Install the plugin by downloading the project and placing
ankiaifolder intoaddons21folder in your Anki data directory - Restart Anki
- Open "Browse" window
- Select Notes you want to generate Example sentences for
- In "Edit" menu select "Generate Example Sentences"
- Obtain an OpenAI API key and enter it in the respective field (needs to be done only once)
- Adjust the "Term" field to the field which contains your vocabulary
- Adjust "Target" field - generated sentences will be placed there
- If needed, adjust the language and level in the prompt
- Click "OK"
- Sentences will be generated
