An open API service indexing awesome lists of open source software.

https://github.com/liufei/ai-dictionary

Ask AI to explain the word in a sentence and save the definition to Anki.
https://github.com/liufei/ai-dictionary

ai anki ankiconnect dictionary ollama openai

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/liufei/ai-dictionary/releases)
- **OR** run command `go install github.com/liufei/ai-dictionary/cmd/ai-dictionary`

### Usage

1. Open terminal, and then set environment variables
```sh
# 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

2. Click `Tools` -> `Manage Note Types` from Anki menu, add note type `AI Dictionary`.

note type

3. Add card template.

card template