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

请问模型设计的接口代码是如何实现的?我应当如何让项目调取本地数据? #40

Open
RainAutumnZero opened this issue Sep 18, 2023 · 3 comments

Comments

@RainAutumnZero
Copy link

你好,在论文中有提及本项目是如何通过self-request和自行设计的interface来调取数据的,但是没有详细阐述是通过何种方式来调取金融信息和实现interface的代码的,请问这是通过llm的代码生成能力自行完成的吗?还有论文中似乎没有特别提及的如何实现调取本地数据以及应当如何自行添加数据描述应该如何实现?感谢回答

@zwq2018
Copy link
Owner

zwq2018 commented Sep 19, 2023

接口代码是LLM生成的,根据种子请求和数据的schema。具体就是论文中讲的那几个步骤,先生成功能描述,然后不断优化,最后补齐代码。调取本地数据?我没太明白你的意思,我的数据是tushare的,通过api访问,得到的是一张张表格

@RainAutumnZero
Copy link
Author

感谢回答,关于获取数据这一步我理解了。其实还有一个疑问,就是我看main里面的run函数似乎并没有生成接口代码相关的内容,请问关于生成接口代码的这一块是怎么自动完成的,还是说是人工将其放入tool.py的?

@zwq2018
Copy link
Owner

zwq2018 commented Sep 25, 2023

感谢回答,关于获取数据这一步我理解了。其实还有一个疑问,就是我看main里面的run函数似乎并没有生成接口代码相关的内容,请问关于生成接口代码的这一块是怎么自动完成的,还是说是人工将其放入tool.py的?

生成接口函数这部分没有完全开源,论文里提供了prompt和整个流程,代码涉及到一些商业所以每开源。工具接口生成这个过程最后输出的是tool.py里的每一个函数,然后做一些单元测试之类的简单筛选

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants