/Anansi

Anki can be used for learning just about anything and the benefits of spaced repetition are tremendous. Anansi is a means of automating deck creation using Anthropic's Claude.

Primary LanguagePythonApache License 2.0Apache-2.0

Anansi - Anki Deck Creation Assistant

Anansi is your assistant for creating Anki decks. You can upload files in various formats (txt, pdf, docx, csv, html, epub) or ask for a deck of questions on a specific subject without uploading a file. After generating the question-answer pairs, you can download the text file and import it into Anki.

Features

  • Upload files in various formats (txt, pdf, docx, csv, html, epub)
  • Generate question-answer pairs from the uploaded text
  • Import the generated text file into Anki

Installation

Using Python

  1. Clone the repository and change directory into the cloned repo:

    git clone https://github.com/onlyartist9/anansi.git
    cd anansi
  2. Install the required libraries:

    pip install -r requirements.txt
  3. Run the Streamlit app:

    streamlit run app.py
  4. Open your browser and go to:

    http://localhost:8501

Using Docker

  1. Clone the repository and change directory into the cloned repo:

    git clone https://github.com/onlyartist9/anansi.git
    cd anansi
  2. Build the Docker image:

    docker build -t anansi .
  3. Run the Docker container:

    docker run -p 8501:8501 anansi
  4. Open your browser and go to:

    http://localhost:8501

On output.

Claude is imperfect and sometimes its responses will vary often, producing improperly formatted output. These are often fixed with some minor adjustments to the text file. See this.

On the benefits and utility of Spaced Repetition

There's not enough good to be said about the benefits of Spaced Repetition. It isn't simply a system for memorization but for familiarizing with practically anything one wants to get accustomed to. The best overview of the subject comes from Gwern who provides an overview of the preexisting research on the topic here.