AnkiHelper is a GPT-based AI assistant that creates entire Chinese flashcards in Anki from just 1 word. Save time while watching shows and instantly create cards with pinyin, translations, and example sentences.
Interfaceable through a Discord bot, the Anki Helper is currently available for self-hosting and development. WIP!
Once the assistant is set up, the bot can be added to the Discord server and used by all members.
Add cards with !add
command
!add 苹果
Experimental
!add 跑步 in deck sports
!add 仔细 with example 他好仔细地学习
- Register OpenAI API Account and Key
- Register Discord App and Bot Token
- Install Python
- Install Anki
- Install AnkiConnect add-on
- Clone this repo
- Install Python packages:
pip install requirements.txt
- Add Tokens and Keys to environment variables. Make sure the variable names match those in
src/config.py
- Start Anki with the Anki-Connect add-on
- Run Anki-Helper:
python3 src/app.py
- Add bot to server with generated URL.
- Start using commands in the server!
- try:
!add 加油
!
- try:
More info on the development page.
- Install packages:
pip install requirements.txt
- Install dev packages:
pip install dev-requirements.txt
- Run all tests:
pytest -v
- Run specific test:
pytest tests\test_name.py -v
p0
Create card from word using LLM.Add card to an anki deck.
p1
- Shared/Live deck collaboration.
2024-01-12
- added wrapper module for requests to AnkiConnect
- added basic tests