A simple implementation for MathPrompter

Algorithm framework

You can visit the demo website Here

A demo screemshot

An example

This demo is not a rigorous implementation of the MathPrompter, it is only a demo for fun. To build this demo, I use LangChain, Streamlit and OpenAI API.

Reference:

[1] Imani, Shima, Liang Du, and Harsh Shrivastava. "MathPrompter: Mathematical Reasoning using Large Language Models." arXiv preprint arXiv:2303.05398 (2023).

Paper link: here