Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions deep_tutor/core/study/FlashCardGenerator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class FlashCardGenerator:
"""
Generates study flashcards from Knowledge Base snippets.
Addresses request for active study tools (#171).
"""
def __init__(self, model_engine):
self.model = model_engine

async def generate_cards(self, content, count=5):
prompt = f"Create {count} flashcards (Question/Answer) from the following text:\n\n{content}"
# Logic to call model and parse structured flashcard output
return [{"q": "Question", "a": "Answer"}]