Skip to content

MTABE is a powerful CLI tool that helps you study smarter using AI-powered flashcards, tests, and chat assistance. It works with various content sources including YouTube videos, web pages, and local files.

Notifications You must be signed in to change notification settings

Henryle-hd/mtabe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTABE CLI - Your AI Study Assistant 🎓

MTABE is a powerful CLI tool that helps you study smarter using AI-powered flashcards, tests, and chat assistance. It works with various content sources including YouTube videos, web pages, and local files.

Installation

First, create and activate a virtual environment:

# Create virtual environment
python -m venv venv

# Activate on Windows
venv\Scripts\activate

# Activate on Linux/Mac
source venv/bin/activate

# Install mtabe
pip install mtabe

Features

  • 📝 Create AI-powered flashcards from any study material
  • 📝 Generate custom tests with various question types
  • 💬 Chat with AI about your study materials
  • 📺 Extract content from YouTube video subtitles
  • 🌐 Pull study material from web pages
  • 📄 Support for multiple file formats (PDF, DOCX, TXT, XLSX, etc.)

Usage

Adding Study Notes

# Add notes by typing/pasting
mtabe add mynotes -t

# Add notes from a YouTube video
mtabe add physics-lecture -y "https://youtube.com/watch?v=xxxxx"

# Add notes from a webpage
mtabe add chemistry-notes -w "https://example.com/chemistry-lesson"

# Add notes from a local file
mtabe add math-formulas -l "path/to/your/file.pdf"

Creating Flashcards

# Create flashcards from saved notes
mtabe flash -f mynotes

# Create flashcards directly from YouTube
mtabe flash -y "https://youtube.com/watch?v=xxxxx"

# Create flashcards from a webpage
mtabe flash -w "https://example.com/lesson"

# Create flashcards from a local file
mtabe flash -l "path/to/your/file.pdf"

Generating Tests

# Generate test from saved notes
mtabe test -f mynotes

# Generate test from YouTube content
mtabe test -y "https://youtube.com/watch?v=xxxxx"

# Generate test from a webpage
mtabe test -w "https://example.com/lesson"

# Generate test from a local file
mtabe test -l "path/to/your/file.pdf"

Chat with AI Tutor

# Chat about saved notes
mtabe chat -f mynotes

# Chat about YouTube content
mtabe chat -y "https://youtube.com/watch?v=xxxxx"

# Chat about webpage content
mtabe chat -w "https://example.com/lesson"

# Chat about local file content
mtabe chat -l "path/to/your/file.pdf"

Supported File Formats

  • Text files (.txt)
  • PDF documents (.pdf)
  • Word documents (.docx)
  • Excel spreadsheets (.xlsx, .xls, .xlsm)
  • PowerPoint presentations (.pptx)
  • CSV files (.csv)

First-Time Setup

On first use, MTABE will prompt you to:

  1. Enter your Groq API key (get it from Groq Console)
  2. Provide your name
  3. Specify your education level
  4. Define your area of focus (IT, CS, Science, etc.)

This information helps MTABE personalize your learning experience.

Tips for Best Results

  • When requesting flashcards, specify the number you want (e.g., "Give me 10 cards")
  • For tests, you can specify question types:
    • Multiple choice
    • True/false
    • Essay
    • Fill in the blank
    • Short explanation
    • Short answer
    • Mix of different types
  • Test results include individual question scores and total test score
  • Chat mode allows natural conversation about your study materials

Example Commands

# Create 10 multiple choice flashcards from a YouTube lecture
mtabe flash -y "https://youtube.com/watch?v=xxxxx"

# Generate a mixed test with 5 questions from saved notes
mtabe test -f chemistry-notes

# Add notes from a PDF textbook
mtabe add chapter5 -l "textbook/chapter5.pdf"

# Start a chat session about your physics notes
mtabe chat -f physics-notes

About

MTABE is a powerful CLI tool that helps you study smarter using AI-powered flashcards, tests, and chat assistance. It works with various content sources including YouTube videos, web pages, and local files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages