77 Automatically complete mathematical modeling and generate a ready-to-submit paper.
88</h4 >
99
10- <br >
11- <h5 align =" center " > <a href =" README.md " >简体中文</a > | English </h5 >
10+ <h5 align =" center " ><a href =" README.md " >简体中文</a > | English</h5 >
1211
13- ## Vision:
14- 3 days to 1 hour <br >
15- Automatically generate an award-worthy mathematical modeling paper
12+ ## 🌟 Vision
13+
14+ Turn 3 days of competition into 1 hour <br >
15+ Automatically generate an award-level modeling paper
16+
17+ <p align =" center " >
18+ <img src="./docs/index.png">
19+ <img src="./docs/coder.png">
20+ <img src="./docs/writer.png">
21+ </p >
1622
1723## ✨ Features
1824
1925- 🔍 Automatic problem analysis, mathematical modeling, code writing, error correction, and paper writing
2026- 💻 Local code interpreter
2127- 📝 Generate a well-formatted paper
2228- 🤝 Multi-agents: ~~ modeling expert~~ , coding expert (reflection module, local code interpreter), paper expert
23- - 🔄 Multi-llms: Different models for each agent
29+ - 🔄 Multi-LLMs: Different models for each agent
30+ - 💰 Low cost agentless (about 1 RMB per task)
2431
2532## 🚀 Future Plans
2633
34+ - [x] Add and complete webui, cli
2735- [ ] Comprehensive tutorials and documentation
28- - [ ] Web service
36+ - [ ] Provide web service
2937- [ ] English support (MCM/ICM)
3038- [ ] LaTeX template integration
3139- [ ] Vision model integration
@@ -34,49 +42,106 @@ Automatically generate an award-worthy mathematical modeling paper
3442- [ ] Docker deployment
3543- [ ] User interaction (model selection, rewriting, etc.)
3644- [ ] Cloud integration for code interpreter (e.g., e2b providers)
37-
38- After cloning the project, install the ** Todo Tree ** plugin to view all specific todo locations in the code
45+ - [ ] Multi-language: R, Matlab
46+ - [ ] Drawing: napki, draw.io
3947
4048## Video Demo
4149
4250<video src =" https://github.com/user-attachments/assets/10b3145a-feb7-4894-aaca-30d44bb35b9e " ></video >
4351
44-
4552## 📖 Usage Guide
4653
47- 1 . Install Dependencies
54+ > ** Notice:** Please make sure Python, Nodejs, and ** Redis** are installed on your computer.
55+ >
56+ > If you want to run the CLI version, switch to the [ master] ( https://github.com/jihe520/MathModelAgent/tree/master ) branch. It's easier to deploy, but will not be updated in the future.
57+
58+ 1 . Configure Model
59+
60+ Copy ` /backend/.env.dev.example ` to ` /backend/.env.dev ` (remove the ` .example ` suffix), and fill in the model configuration and APIKEY
61+ [ Deepseek Developer Platform] ( https://platform.deepseek.com/ )
62+
63+ ``` bash
64+ ENV=dev
65+ # Compatible with OpenAI format, refer to official docs
66+ DEEPSEEK_API_KEY=
67+ DEEPSEEK_MODEL=
68+ DEEPSEEK_BASE_URL=
69+ # Max Q&A turns
70+ MAX_CHAT_TURNS=60
71+ # Reflection retries
72+ MAX_RETRIES=5
73+ # https://e2b.dev/
74+ E2B_API_KEY=
75+
76+ LOG_LEVEL=DEBUG
77+ DEBUG=true
78+ # Make sure Redis is installed
79+ REDIS_URL=redis://localhost:6379/0
80+ REDIS_MAX_CONNECTIONS=20
81+ CORS_ALLOW_ORIGINS=http://localhost:5173,http://localhost:3000
82+ ```
83+
84+ It is recommended to use models with strong capabilities and large parameter counts.
85+
86+ 2 . Install Dependencies
87+
88+ Clone the project
89+
4890``` bash
4991git clone https://github.com/jihe520/MathModelAgent.git
50- pip install uv
51- uv venv # create venv
52- uv sync # install dependencies
5392```
54- 2 . Configure Model
55- Copy ` /config/config.toml.example ` to ` /config/config.toml ` and fill in the model configuration
5693
57- Recommend using models with strong capabilities and large parameter counts.
94+ Start backend
5895
59- 3 . Run Tests and Start Project
6096``` bash
61- uv run example.py # simple test to verify correct operation
62- uv run main.py # complete project
97+ cd backend
98+ pip install uv # Recommended: use uv to manage python projects
99+ uv sync # Install dependencies
100+ # Start backend
101+ ENV=DEV uvicorn app.main:app --host 0.0.0.0 --port 8000 --ws-ping-interval 60 --ws-ping-timeout 120
63102```
64103
65- Results will be in the ` /project/work_dir/ ` directory
104+ Start frontend
105+
106+ ``` bash
107+ cd frontend
108+ pnpm i # Make sure pnpm is installed
109+ pnpm run dev
110+ ```
111+
112+ Results and outputs are generated in the ` backend/project/work_dir/xxx/* ` directory:
113+ - notebook.ipynb: code generated during execution
114+ - res.md: final results in markdown format, can be converted to Word (try pandoc)
115+
116+ ## 🤝 Contribution & Development
66117
67- ## 🤝 Contribution
118+ - The project is in ** experimental development stage** (updated when I have time), with frequent changes and some bugs being fixed.
119+ - Everyone is welcome to participate and make the project better.
120+ - PRs and issues are very welcome.
121+ - For requirements, refer to Future Plans.
68122
69- - Project is in ** development stage ** (I update when time permits), with frequent changes and some bugs that I'm working to fix .
70- - Issues and PRs are welcome
71- - For requirements, refer to Future Plans
123+ After cloning the project, install the ** Todo Tree ** plugin to view all todo locations in the code .
124+
125+ ` .cursor/* ` contains overall architecture, rules, and mcp for easier development.
72126
73127## 📄 License
74128
75- Not for commercial use. Contact me (author) for commercial purposes .
129+ Free for personal use. For commercial use, please contact me (the author).
76130
77131## 🙏 Reference
132+
78133Thanks to the following projects:
79134- [ OpenCodeInterpreter] ( https://github.com/OpenCodeInterpreter/OpenCodeInterpreter/tree/main )
80135- [ TaskWeaver] ( https://github.com/microsoft/TaskWeaver )
81136- [ Code-Interpreter] ( https://github.com/MrGreyfun/Local-Code-Interpreter/tree/main )
82137- [ Latex] ( https://github.com/Veni222987/MathModelingLatexTemplate/tree/main )
138+
139+ ## Others
140+
141+ Thanks to sponsors
142+ [ danmo-tyc] ( https://github.com/danmo-tyc )
143+
144+ For questions, join the group
145+ [ QQ Group: 699970403] ( http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=rFKquDTSxKcWpEhRgpJD-dPhTtqLwJ9r&authKey=xYKvCFG5My4uYZTbIIoV5MIPQedW7hYzf0%2Fbs4EUZ100UegQWcQ8xEEgTczHsyU6&noverify=0&group_code=699970403 )
146+
147+ <img src =" ./docs/qq.jpg " height =" 400px " >
0 commit comments