Skip to content
UsecaseBoard
← All use cases
blogStudy

Add researched artwork notes to an existing Anki deck

At a glance

Antoine Finkelstein enriched an art deck with Perplexity-generated explanations, then imported the additional field into Anki. This workflow is listed under Study, Personal Knowledge.

Agents / tools
Anki, Perplexity, Ruby

SourceBuilding a tool for these workflows? See weekly rates.

What they did

1) Have Anki, Ruby 3+ and a Perplexity API key. Download `antoinefink/anki-ai-enrichment` from GitHub and copy `.env.example` to `.env`. Set `PERPLEXITY_API_KEY` and an available `PERPLEXITY_MODEL`. 2) Export your deck as plain text with all export options enabled, placing `art.txt` beside the script. Set `CSV_SEPARATOR` to a tab and `SKIP_INITIAL_LINES` to the metadata-line count in your export. 3) Run `ruby script.rb -i art.txt columns` to inspect the zero-based field indices. 4) For the author's layout, run `ruby script.rb -i art.txt -o output.csv perplexity 18 "What is the significance of column_4 by column_5?"`; replace indices 4, 5 and 18 with your artwork, artist and empty destination indices. 5) Create the new field in Anki, import `output.csv`, map the fields and update the card template to show the explanation.

Worth knowing

Ruby requirements and command details are supplemented from the linked maintainer README and script. Finkelstein chose search-backed answers to reduce artwork conflation.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

No prompt excerpt was provided by the source.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →