"Anki Addon: Create Multiple Normal and Filtered Decks from JSON" (partially finished, working)

I’m curious about why C3.5 isn’t functioning as expected. Would feeding it some API help improve its performance? I understand that new versions of LLMs aren’t released every day. I’m currently using Windows 10, Anki 23.10, and FSRS.
I primarily use Cursor IDE with C3.5 for most of my hobby coding, and it has been quite reliable until now. However, today I encountered an issue where it couldn’t even create filtered decks.
I decided to try C3.7, which was released just under two weeks ago. While I know that C3.7 is smarter, I’m wondering if this simple job (creating filter deck) requires more information to function properly or if it relies on intelligence to get the job done.
Based on my experience, newer versions tend to be better, but I’m curious if there’s a way to enhance C3.5’s capabilities by feeding it an API, especially since new versions aren’t released frequently. Thanks for your help!

ps: C3.7 thinking is expensive and shortage in supply.
if you only use it for coding, copilot is a good source. however it refuse to answer anything other than programming

This is not a question for this forum. You obviously don’t need an AI bot to create a Filtered deck – Filtered Decks - Anki Manual . If you have questions about how an AI bot functions – you should direct those to its programmers.

1 Like

i dont think so. this is multi displine.

other candidates who use anki with LLMs to build tools will found my experience useful.

hi, i sort of made an addon alike in this reddit post:

that you edit a .json file, and the addon create for you. the number of deck, normal or filtered, query, sort by, add numbers etc can be edited in the .json file.

however as a med student the naming of the deck contains subject - intmed/sur/pedi/obgyn so the script may need some tunning.

i just paste the .json file to see if someone may found it useful first.

{
    "profiles": [
        {
            "name": "ConcentratedStudy",
            "phase": "(mr mitral regur*)",
            "fullname": "MitralRegurgitation",
            "subject": "intmed",
            "decks": [
                {
                    "name_pattern": "{fullname}-{subject}",
                    "type": "normal"
                },                              
                {
                    "name_pattern": "{fullname}-{subject}-exmed",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended tag:{subject} -tag:case tag:exmed*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                },
                {
                    "name_pattern": "{fullname}-{subject}-lv1a",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended tag:{subject} -tag:case tag:lv1a*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                },
                {
                    "name_pattern": "{fullname}-{subject}-lv1b",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended tag:{subject} -tag:case tag:lv1b*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                },
				{
                    "name_pattern": "{fullname}-z-else",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended -tag:case -tag:exmed* -tag:lv1a* -tag:lv1b*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                }
				
            ]
        }
    ],
    
    /* 
    Card order options:
    0: Oldest first (cards ordered by creation/modification time)
    1: Random
    2: Increasing intervals
    3: Decreasing intervals
    4: Most lapses
    5: Order added
    6: Order due
    7: Latest added first
    */
}


i dont have access to the addon webpage now, any existing addon do the same thing? am in reinventing the wheel? thanks

ps: i have access to that page now, seems not done before. @Shigeyuki if you wish you could pick it up and finish it. just credit me like last time i am all ok. thanks. But you have to tune it for layman to use as the naming now is fitted for my med study more. thx

ps: similar to https://ankiweb.net/shared/info/2058067048

ps: c3.7t:
While both add-ons help create filtered decks, they serve different purposes:

Filtered Deck From Tag

  • Quick tag-based decks: Right-click on a tag in the browser to instantly create a filtered deck
  • Single-deck focus: Creates one deck at a time directly from the browser
  • Tag-oriented: Primarily designed to study specific tags
  • On-demand usage: For spontaneous, one-off filtered deck creation

Your CustomStudyBuilder

  • Comprehensive deck system: Creates multiple related decks at once based on profiles
  • Complex queries: Supports sophisticated search patterns beyond just tags
  • Consistent structure: Ensures the same deck organization across different subjects
  • Configuration-driven: Uses a JSON file for detailed customization
  • Reusable profiles: Save complex deck setups for repeated use

The two add-ons actually complement each other rather than overlap:

  • Use Filtered Deck From Tag for quick, impromptu studying of specific tags
  • Use CustomStudyBuilder for creating comprehensive, standardized study systems across different subjects

CustomStudyBuilder is more powerful for complex, repeatable deck structures, while Filtered Deck From Tag offers more convenience for simple, immediate tag-based study.

1 Like

hi,
currently i am happy using my addon.
i do will open browser and do a “search” to see what cards present for a specific topic, and then try several keywords to see how i divided that into subdecks.

then i’ll use my addon to create that 5 subdeck for that topic. it helped me.

recently i found anki’s addon 's page is re-implemented that i can dnld the whole list of 1744 anki addon’s info i.e. name, ratings, last modified time etc.

just come across one addon that is similar:
https://ankiweb.net/shared/info/861263371
however it’s broken since 2021 (and i am a new anki user it seems i only start using anki at the end of 2021 something)

someone in the above thread say there is a new version
https://ankiweb.net/shared/info/127393092
but looks like is another tool to me.

anyway,
if i am time, i’ll either make my addon become more general, so will suit to non-med school users.

or indeed one can simply ask LLMs to update that addon.

i sort of modified it,
that it now let user edit the .json file.
can choose how many “alias” and how many cards to make.

so you list out how many cards you need,
and for each card, what’s the search term, and you can include the “alias” into the search term.

this makes making a set of decks much faster.
however there do exist some similar addons after i found out there is 1744 addon indeep.

sigh

1 Like

Hi thanks for the mention. Since I haven’t developed add-ons for filtered decks yet I’m not sure about it, so I’ll look into it next time.