anki-search-inside-add-card
anki-search-inside-add-card copied to clipboard
Feature request: Natural Language Pipleline for Question Generation
Hi, First of all, thank you for the continuous contribution to this amazing addon. Ability to add cards directly from PDF and link them to the source was a game changer. Also, this addon continues to amaze everyday as you go on and discover new features.
With the latest innovations in machine learning and artificial intelligence especially Natural Language Processing, it feels like this addon will benefit greatly with the inclusion of an NLP pipeline for question generation.
Feature Description
- This can be included as an optional feature controlled from the addon config.
- When the user selects a paragraph,then an option to generate questions appears.
- When the user clicks on it then another window with the generated questions and answers for this paragraph appears.
- The user can then select each question to add or select all questions to add.
- Another possiblity is to give the option to move the question to the Anki notes fields so they can be modified before adding.
Possible Directions for Establishing an NLP pipeline for question generation. There are already a lot of projects which are good at question generation pipelines. Their performance is good enough to be directly used in this addon. Example, https://huggingface.co/valhalla/t5-small-qa-qg-hl
Conclusion This feature is currently present in polar bookshelf premium but only offer limited card generation. This feature will bring in a new age of Artificial Intelligence and Machine Learning based tools to Anki. With the newer innovations, better models, AI based search etc. can be later be introduced to Anki but it all requires a starting point.
Hi, I think NLG is an interesting topic, and I have privately fiddled myself with question generation. But it is a complex topic, and would require some significant work backend and UI-wise, which I cannot do atm unfortunately.