This is a simple Streamlit app that integrates the Langchain framework with GROQ's Chat Model (Gemma2) to solve mathematical problems. The app also uses additional tools like a calculator and Wikipedia search to enhance the problem-solving experience. The user interacts with the app by entering a math question, and the app provides a detailed solution.
- Mathematical Problem Solving: Use the 
LLMMathChaintool to solve complex math problems. - Wikipedia Search: The app can pull information from Wikipedia to provide context or answer general knowledge questions.
 - Logical Reasoning: The app offers detailed explanations of the steps taken to solve the math problem, using the Langchain logic agent.
 - Interactive Interface: The app uses Streamlit's chat message interface to handle conversations interactively.
 
- Input: Users can enter a math-related question into a text box.
 - GROQ Chat (Gemma2): The entered question is processed using the Gemma2 model to generate a solution.
 - Wikipedia API: For questions needing general information, the app can pull relevant data from Wikipedia.
 - Calculator: The app can perform basic math operations using a Langchain-powered calculator.
 - Logical Reasoning: A reasoning tool is used to provide detailed explanations of how the solution was derived.
 - Callbacks: Streamlit's callback handler is used to display intermediate steps as the agent processes the question.
 
- Python 3.8+
 - A GROQ API key for the Gemma2 model.
 - The following Python libraries:
streamlitlangchainlangchain_groqstreamlit-chat(if not part ofstreamlit)
 
- 
Clone this repository or download the files.
https://github.com/Muhammad-Rebaal/Gemma-Math-Problem-Solver.git