FLAML icon indicating copy to clipboard operation
FLAML copied to clipboard

Agent Implementation of MathChat

Open yiranwu0 opened this issue 2 years ago • 3 comments

Implement the MathChat paper with the current agent framework:

  • Put the specified math problem-solving prompt in system message of AssistantAgent for the LLM. If the behavior is not desired, the assistant agent need to be modified to accept this prompt in user message.
  • Implement a MathUserProxyAgent from UserProxyAgent, need to inherit the autoreply function.
  • MathChat proposes a conversational framework to solve math problems, which is equivalent to interactions between the two agents. Building on the agents also allow human inputs.
### Tasks
- [x] Review PR https://github.com/microsoft/FLAML/pull/1056
- [x] Evaluate the performance of AssistantAgent and UserProxyAgent on math problem solving (on several representative problems)
- [ ] Agent implementation of MathChat. PR made and approvals from reviewers pending in https://github.com/microsoft/FLAML/pull/1076
- [ ] Update arxiv: Update link to implementation(keep the old one for the purpose of reproducing the exp results)
- [ ] Update FLAML's autogen documentation: mention MathChat
- [ ] Write a blogpost about MathChat

yiranwu0 avatar Jun 06 '23 12:06 yiranwu0

What does "Put the specified math problem-solving prompt in system message of AssistantAgent for the LLM." mean? A complete replacement or a modification? There are certain designs in the existing prompt of AssistantAgent that makes it collaborate w/ the UserProxyAgent. Would you like to keep those working designs?

sonichi avatar Jun 06 '23 16:06 sonichi

I mean that when calling the AssistantAgent, I will not use the default system_message but input one. I will implement a corresponding MathUserProxyAgent, and I will modify the autoreply function. It will follow the working design, however the autoreply will be very different from the base proxyagent.

yiranwu0 avatar Jun 07 '23 05:06 yiranwu0

@kevin666aa, I revised the task list.

qingyun-wu avatar Jun 09 '23 18:06 qingyun-wu