AI-Math-Tutor: based on George Pólya’s famous book “How to Solve It”
3 min readJun 9, 2024
This is an AI-assisted construction shell software that took two and a half days to write.
Its features include:
- Although currently connected to ChatGPT, it deliberately does not use ChatGPT’s proprietary API (Tools API), so any powerful GPT can be used.
- It references George Pólya’s famous book “How to Solve It”. (I bought this book when I was young, but only flipped through it like a novel.) I feel its teaching effect is comparable to that of a typical teaching assistant.
- If the system saves the math problems students have done in the past, the process can include calling up the math problems the student has done before, finding similar problems. That would be perfect!
- Because it’s an API call, ChatGPT’s API calls do not have memory, so each call requires a large number of tokens. I seriously suspect that OpenAI has given collaborating institutions like Khan Academy a backdoor: providing session keys in API calls, so each session does not need to upload all useful session records. Otherwise, it’s simply not practical: it’s too costly.
- In the system, the AI automatically decides whether to proceed to the next step, but users can also decide manually. In the first step, the AI extracts keywords from the conversation that the user inputs, and if none are present, the AI generates them automatically. I think when the eyes see a word, related neural connections may be activated.
The key to achieving good conversational results lies in writing prompts and handling conversation history.