News for hackers. Stuff that matters.
Re:Spaced repetition systems have gotten way better by andy12_ on Sunday May 18, 2025 @05:23PM (#44024398)
I haven't tried many variations yet because a basic prompt seems to work well, thought it is important to remind Gemini of not using ";" inside the text of the cards if you use it as a separator. I imagine that with better prompts you could get it to generate very nice flash cards, but I'm in a little tight schedule, so I can't play around it for too long.

Another nicer option I think would be using the structured output of the API to generate the cards in JSON format, and the parse it to the Anki format with a script, but I think this approach is fine for me.

The prompt I'm using is this

---

Using the information in these PDFs, make some Anki cards to study for an exam.

The format for Anki cards is

```

front1;back1

front2;back2

front3;back3

```

Remember that you can't use ";" inside a field because it is used to separate the front and back of a card.

If the back of a card is a list of elements, prefer to use "<br>" to specify a newline.

Re:Spaced repetition systems have gotten way better by j1elo on Monday May 19, 2025 @03:11AM (#44027199)
That's already very useful! thank you.