A simple Ollama based math bot made for learning purposes.
MathBot is a web-based scientific calculator that uses Ollama to process and solve advanced mathematical problems. The bot supports LaTeX input for mathematical expressions and returns detailed, step-by-step solutions.
-
Clone the repository:
git clone https://github.com/akanshSirohi/math-bot.git cd math-bot -
Install dependencies:
npm install
-
Install Ollama:
- Download and install Ollama from ollama.com.
- Ensure Ollama is running on your machine.
-
Configure Environment Variables: Create a
.envfile at the root with the following content:OLLAMA_BASE_MODEL=deepseek-r1:1.5b
Adjust the base model if necessary.
-
Run the Application:
npm run dev
Open your browser at
http://localhost:3000to interact with MathBot.
- Use the input area to type your mathematical expressions in LaTeX format.
- Toggle between LaTeX input mode and plain text input using the provided button.
- MathBot will process your input with the underlying Ollama model and return the computed result.
- Demonstrates integration between a NodeJS React frontend and Ollama as a machine learning backend.
- Provides insights into handling real-time streaming responses in a web application.
This project is for educational purposes.