{"id":29651310,"url":"https://github.com/jv456/gemmatician","last_synced_at":"2026-05-04T22:36:23.613Z","repository":{"id":305332933,"uuid":"1022609283","full_name":"JV456/gemmatician","owner":"JV456","description":"A generative AI Streamlit app that solves math and logic problems from natural language, powered by Google Gamma and Langchain agents. ","archived":false,"fork":false,"pushed_at":"2025-07-19T15:38:21.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T17:12:00.936Z","etag":null,"topics":["google-gemma2","langchain","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JV456.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T12:49:57.000Z","updated_at":"2025-07-19T15:40:29.000Z","dependencies_parsed_at":"2025-07-19T17:12:20.452Z","dependency_job_id":"636d644e-e231-4526-a1f6-6ee6169dfca2","html_url":"https://github.com/JV456/gemmatician","commit_stats":null,"previous_names":["jv456/gemmatician"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/JV456/gemmatician","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JV456%2Fgemmatician","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JV456%2Fgemmatician/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JV456%2Fgemmatician/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JV456%2Fgemmatician/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JV456","download_url":"https://codeload.github.com/JV456/gemmatician/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JV456%2Fgemmatician/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266430662,"owners_count":23927169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-gemma2","langchain","streamlit"],"created_at":"2025-07-22T05:06:35.396Z","updated_at":"2026-05-04T22:36:23.575Z","avatar_url":"https://github.com/JV456.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gemmatician - MathsGPT\n\nWelcome to my **Gemmatician - MathsGPT** – an end-to-end generative AI application powered by Google Gamma! This app is built using Streamlit and leverages the latest AI models and agent toolchains to provide dynamic step-by-step solutions for math and logical reasoning problems.\n\n---\n\n## ✨ Features\n\n- **Chatbot Interface:** Ask math questions in natural language and get step-by-step explanations.\n- **Supports Logical Reasoning:** Not just calculations–get thoughtful answers to logical and multi-step problems.\n- **Integrated Wikipedia Search:** Fetches relevant information for queries requiring background knowledge.\n- **Persistent Chat History:** Conversations are maintained for session continuity using Streamlit's session state.\n- **Agent-Based Toolchain:** Combines multiple tools (calculator, Wikipedia, logic/reasoning) with Google Gamma's LLM for robust results.\n\n---\n\n## 🛠️ How It Works\n\n### Architecture\n\n- **Streamlit** provides the frontend and stateful chat interface.\n- **Google Gamma (via Grok API):** The backbone LLM for all generative and reasoning tasks.\n- **Tools \u0026 Agents (Langchain):**\n  - **Wikipedia Tool:** Handles search and fetch queries.\n  - **Calculator Tool:** Parses and solves mathematical expressions.\n  - **Reasoning Tool:** Runs custom prompts with the LLM to solve multi-step or logic-based queries.\n\n### Flow\n\n1. **User inputs a math or logic question.**\n2. **Agent orchestrates** the required tools based on the task:\n    - For direct math: Calculator Tool\n    - For context/knowledge: Wikipedia Tool\n    - For logic/reasoning: Reasoning Tool (LLM chain with a prompt template)\n3. **Step-by-step response**, often with pointwise explanations, is displayed in the chat interface.\n4. **Session history** is maintained, and every new question/answer is appended to the chat.\n\n---\n\n## 📝 Example Usage and Output\n\n\n\u003cimg width=\"1919\" height=\"867\" alt=\"Screenshot 2025-07-19 205811\" src=\"https://github.com/user-attachments/assets/c9f7f814-6b9e-4ba0-9daa-a0bee247d71c\" /\u003e\n\n\u003cimg width=\"1919\" height=\"871\" alt=\"Screenshot 2025-07-19 205820\" src=\"https://github.com/user-attachments/assets/dacc7acc-e244-40c5-b0a5-5cdf662d6f3e\" /\u003e\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjv456%2Fgemmatician","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjv456%2Fgemmatician","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjv456%2Fgemmatician/lists"}