Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否支持在jupyter内部运行LLM生成的代码 #133

Open
JayLZhou opened this issue Apr 2, 2024 · 1 comment · May be fixed by #231
Open

能否支持在jupyter内部运行LLM生成的代码 #133

JayLZhou opened this issue Apr 2, 2024 · 1 comment · May be fixed by #231
Assignees
Labels
enhancement New feature or request work in progress Work in progress

Comments

@JayLZhou
Copy link

JayLZhou commented Apr 2, 2024

支持在jupyter环境运行LLM产生的代码

可以参考MetaGPT的实现
https://github.com/geekan/MetaGPT/blob/main/metagpt/actions/di/execute_nb_code.py#L30

优点如下:

  1. 更好的定位错误,来让LLM来自我reflection修复代码
  2. 对数据分析/数据科学任务更加友好
  3. 可以输出数据分析的图例
  4. 可以通过!pip xxx自动安装包来解决环境依赖问题
  5. 更好的拆解复杂代码任务,如可以把代码分解到几个cell内部,分别执行每个cell,这样的成功率会更高
@JayLZhou JayLZhou added the enhancement New feature or request label Apr 2, 2024
@DavdGao DavdGao added the work in progress Work in progress label May 11, 2024
@DavdGao DavdGao linked a pull request May 24, 2024 that will close this issue
4 tasks
@DavdGao
Copy link
Collaborator

DavdGao commented May 24, 2024

Update progress: Related to PR #231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request work in progress Work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants