Comment by andy12_

Comment by andy12_ 2 months ago

3 replies

I have just tried this afternoon to create with Gemini 2.5 Pro Anki cards to study for my exams. I've been doing it raw: I just paste the whole material (like 100k worth of tokens) into aistudio and generate the flashcards in txt format.

For now it's going great, and I think that the cards are good enough as they are (there might be a couple here and there that I would remove or edit, but they don't get in the way of learning).

j1elo 2 months ago

Is there any prompt tips you have learned on that path, that you could share? or the obvious request has been useful already without too much fiddling?

I was thinking to use some study material to test drive Google NotebookLM for this use case.

  • andy12_ 2 months ago

    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.

    • j1elo 2 months ago

      That's already very useful! thank you.