GithubHelp home page GithubHelp logo

anki-helper's Introduction

AnkiHelper

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.

Anki-Helper Demo

Interfaceable through a Discord bot, the Anki Helper is currently available for self-hosting and development. WIP!

Usage

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 他好仔细地学习

Setup

API Registrations and Keys

  1. Register OpenAI API Account and Key
  2. Register Discord App and Bot Token

Programs

  1. Install Python
  2. Install Anki
  3. Install AnkiConnect add-on
  4. Clone this repo

Environment

  1. Install Python packages: pip install requirements.txt
  2. Add Tokens and Keys to environment variables. Make sure the variable names match those in src/config.py

Hosting the App

  1. Start Anki with the Anki-Connect add-on
  2. Run Anki-Helper: python3 src/app.py

Using the Discord Bot

  1. Add bot to server with generated URL.
  2. Start using commands in the server!
    • try: !add 加油!

Development

More info on the development page.

Setup

  1. Install packages: pip install requirements.txt
  2. Install dev packages: pip install dev-requirements.txt

Testing

  • Run all tests: pytest -v
  • Run specific test: pytest tests\test_name.py -v

Roadmap

p0

  • Create card from word using LLM.
  • Add card to an anki deck.

p1

  • Shared/Live deck collaboration.

Change log

2024-01-12

  • added wrapper module for requests to AnkiConnect
  • added basic tests

anki-helper's People

Contributors

ryanlin avatar

Watchers

Kostas Georgiou avatar  avatar

anki-helper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.