Skip to content

liufei/ai-dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Dictionary

Ask AI to explain the word in a sentence and save the definition to Anki.

ai-dictionary anki card

Ask AI to explain the word in a sentence

Requirements

  • LLM API Key

Installation

  • Download latest release
  • OR run command go install github.com/liufei/ai-dictionary/cmd/ai-dictionary

Usage

  1. Open terminal, and then set environment variables
    # Claude, Deepseek, Gemini, Ollama, OpenAI, etc.
    export OPENAI_BASE_URL=https://***; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=***
  2. Run command ai-dictionary

Save the definition to Anki

Requirements

  • Anki Desktop
  • AnkiConnect

Usage

  1. Open Anki, create deck AI Dictionary.
anki deck
  1. Click Tools -> Manage Note Types from Anki menu, add note type AI Dictionary.
note type
  1. Add card template.
card template

About

Ask AI to explain the word in a sentence and save the definition to Anki.

Topics

Resources

License

Stars

Watchers

Forks