CoolFace
Apppublic

HusseinBaghdadi/Math_Solver_LLM

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
App README

๐Ÿ“ Gemma Math Solver Assistant

A powerful, interactive AI-driven web app built with Streamlit, LangChain, and Google Gemma 2 to answer your math problems, logical reasoning questions, and information queries swiftly and accurately.


๐Ÿ”ฅ Key Features

  • โ€”๐Ÿงฎ Accurate Math Solver: Solve complex mathematical problems accurately using LangChain's LLMMathChain.
  • โ€”๐Ÿง  Logical Reasoning: Detailed explanations and step-by-step logical reasoning provided by customized prompts.
  • โ€”๐Ÿ“š Wikipedia Integration: Instantly fetch relevant information from Wikipedia.
  • โ€”๐ŸŽจ Interactive UI: Clean, easy-to-use interface powered by Streamlit.
  • โ€”๐Ÿš€ Google Gemma 2: Leverage the power of Google's Gemma2-9b-It for powerful AI-driven responses.

โš™๏ธ Tech Stack

  • โ€”Streamlit: Interactive web app frontend
  • โ€”LangChain: Building and managing complex workflows and intelligent tool selection
  • โ€”ChatGroq: Integration of Google Gemma2-9b-It LLM
  • โ€”LLMMathChain: Accurate mathematical computations
  • โ€”Wikipedia API: Information retrieval for knowledge-based queries

๐Ÿ“ฅ Installation

Clone the repository

Install dependencies

Set up environment variables

Create a .env file:


๐Ÿš€ Running the Application

Launch your Streamlit application:

The app will be accessible at:


๐Ÿ’ก How it Works

  1. 1.User Input: Enter your math, logic, or general information query.
  2. 2.Tool Selection: The app automatically chooses the right tool (Math solver, Wikipedia, or Reasoning).
  3. 3.Processing: Your query is processed by Google Gemma 2 using LangChain workflows.
  4. 4.Output: Receive detailed, accurate, and clear answers instantly.

๐Ÿ›  Contributing

Feel free to contribute by submitting pull requests, reporting bugs, or suggesting enhancements. Your feedback is always welcome!


๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.