bklieger-groq/mathtutor-on-groq

Voice-Enabled Math Tutor Powered by Groq that Calculates and Renders Live Problems and Instruction with LaTeX in Seconds!

244

stars

12

commits

TypeScript

primary language

Dec 30, 2025

updated

8090
education
groq
groq-api
math
xrx

README


Voice-Enabled AI Math Tutor That Calculates and Renders Live Problems and Instruction with LaTeX in Seconds!

OverviewFeaturesInterfacesQuickstartCredits


https://github.com/user-attachments/assets/24abe05a-ee6f-49d8-bdfc-13214b8d3d54

Overview

Math Tutor on Groq is an AI-powered voice chatbot that leverages 8090's xRx framework, Whisper and Llama 3.3 70b on Groq, and TTS on Elevenlabs to respond in conversation with the student with live LaTeX and Markdown-formatted equations and notes specifically tailored to the student's requests. Groq's speed makes providing a complex response near instantaneous, enabling a seamless experience.

The speed also enables algebra and calculus problems to first be solved via an internal math engine, then providing the solution as context to the AI, increasing accuracy of the response.

Quickstart

[!IMPORTANT] To use Math Tutor, you can use a hosted version at coming soon. Alternatively, you can run Math Tutor locally using the quickstart instructions.

  1. Clone the Repository

    git clone --recursive https://github.com/bklieger-groq/mathtutor-on-groq.git
    

    The recursive flag ensures the xRx library is downloaded as well.

  2. Create File for Environment Variables

    cp env-example.txt .env
    
  3. Configure API Keys

    • Add your Groq API key to .env:

      LLM_API_KEY="your_groq_api_key_here"
      GROQ_STT_API_KEY="your_groq_api_key_here"
      
    • Configure TTS settings with your preferred provider (e.g., ElevenLabs)

    ELEVENLABS_API_KEY="your_elevenlabs_api_key"
    

    You can obtain a Groq API key from the Groq console

  4. Run the Application

    docker-compose up --build
    

Your application will be available at localhost:3000.

Changelog

See CHANGELOG.md to see the latest changes and versions. Major versions are archived.

Credits

This app was developed by Benjamin Klieger at Groq and uses the xRx framework created by 8090 Solutions: Github Repository.

Contributors

bklieger-groq

12 commits

bklieger-groq/mathtutor-on-groq

Voice-Enabled Math Tutor Powered by Groq that Calculates and Renders Live Problems and Instruction with LaTeX in Seconds!

244

stars

12

commits

TypeScript

primary language

Dec 30, 2025

updated

8090
education
groq
groq-api
math
xrx

README


Voice-Enabled AI Math Tutor That Calculates and Renders Live Problems and Instruction with LaTeX in Seconds!

OverviewFeaturesInterfacesQuickstartCredits


https://github.com/user-attachments/assets/24abe05a-ee6f-49d8-bdfc-13214b8d3d54

Overview

Math Tutor on Groq is an AI-powered voice chatbot that leverages 8090's xRx framework, Whisper and Llama 3.3 70b on Groq, and TTS on Elevenlabs to respond in conversation with the student with live LaTeX and Markdown-formatted equations and notes specifically tailored to the student's requests. Groq's speed makes providing a complex response near instantaneous, enabling a seamless experience.

The speed also enables algebra and calculus problems to first be solved via an internal math engine, then providing the solution as context to the AI, increasing accuracy of the response.

Quickstart

[!IMPORTANT] To use Math Tutor, you can use a hosted version at coming soon. Alternatively, you can run Math Tutor locally using the quickstart instructions.

  1. Clone the Repository

    git clone --recursive https://github.com/bklieger-groq/mathtutor-on-groq.git
    

    The recursive flag ensures the xRx library is downloaded as well.

  2. Create File for Environment Variables

    cp env-example.txt .env
    
  3. Configure API Keys

    • Add your Groq API key to .env:

      LLM_API_KEY="your_groq_api_key_here"
      GROQ_STT_API_KEY="your_groq_api_key_here"
      
    • Configure TTS settings with your preferred provider (e.g., ElevenLabs)

    ELEVENLABS_API_KEY="your_elevenlabs_api_key"
    

    You can obtain a Groq API key from the Groq console

  4. Run the Application

    docker-compose up --build
    

Your application will be available at localhost:3000.

Changelog

See CHANGELOG.md to see the latest changes and versions. Major versions are archived.

Credits

This app was developed by Benjamin Klieger at Groq and uses the xRx framework created by 8090 Solutions: Github Repository.

Contributors

bklieger-groq

12 commits

Languages

TypeScript

51.5%

Python

36.4%

CSS

7.8%

JavaScript

2.3%

Dockerfile

1.9%