Comments (7)
The PythonInterpreter supports three formats
- solution()
- print(answer)
- get the final line answer
You can modify PythonInterpreter'description and PythonInterpreter'parameter to get the best practice
from lagent.
@Harold-lkk question is, how to decide which format use before LLM prints it's code?
from lagent.
That maybe depend on LLM.
- More powerful LLM can follow more strict user instructions.
- You may need different prompts for different LLM, which is prompt-engineering
from lagent.
@Harold-lkk Can u provide some workable example using interLM7B? it should not differs too much for most opensource LLMs.
from lagent.
Hi @lucasjinreal ,
Thanks for your report. There are still some issues with the code capability and the code interpreter ability. The current workaround might be manually deal with '```python' and remove it. We will further enhance the model in the future to fix that.
from lagent.
I also tried to make a code-interpreter-like project. The biggest problem is how to extract code block in response string. I'm struggling on such solutions like providing sample responses(prompt skill) to LLM but not everytime it works.
from lagent.
Yes, it is a bit difficult for some models. We will update the functionality of code interpreter in the future.
from lagent.
Related Issues (20)
- 请问,我如何调用第三方的api HOT 1
- 运行示例时报错requests.exceptions.ConnectTimeout HOT 1
- 工具调用幻觉严重 HOT 3
- 为什么部署成功了internlm2_agent_web_demo.py,但是模型回答不调用工具呢? HOT 1
- internlm2_agent_web_demo的actions都无法调用么
- 使用lagent.actions.PPT时,发现的一个BUG。 HOT 2
- 目前GPTAPI不支持internlm api调用吗? HOT 2
- 由于internlm api不支持system输入,所以agent工具调用不能用,有没有什么解决方法啊? HOT 1
- lagent/llms/lmdepoly_wrapper.py 文件名错误,应该改为 lmdeploy_wrapper.py
- ModuleNotFoundError: No module named 'lagent.llms.lmdeploy_wrapper' HOT 11
- TypeError: string indices must be integers HOT 1
- [Docs] A100算力加持!书生大模型实战营第3期全面升级,趣味闯关模式等你开启
- 能不能好好的维护文档
- 这应该是'content'吧 HOT 2
- lagent的API服务? HOT 1
- Let's all find examples of bad usage.
- Let's all find examples of good/bad usage.(大家一起记录优秀/不好的示例)
- 基于对话聊天的模糊搜索 探讨
- Bedrock Support
- 请问是否支持商汤商量V5.5模型? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lagent.