We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
希望能提供支持sql server数据库和es引擎的数据库查询方法
The text was updated successfully, but these errors were encountered:
改默认提示词 text2sql.py 默认是 You are a MySQL expert
Sorry, something went wrong.
db = SQLDatabase.from_uri(sqlalchemy_connect_str) 这一行代码连接sql server 数据库特别慢,是什么原因呢?
sqlalchemy_connect_str=f'mssql+pyodbc://{username}:{password}@{server}/{database}?driver={driver}' 提示词也改成这个 还是不行的
连接慢不太清楚 可以单独测试一下这个连接 可以开详细日志模式 看一下哪里出的问题 有可能出问题的地方太多了 语句是执行报错 还是没到执行这一步 模型支不支持agent和工具调用
请问我这怎么解决呀,生成的sql后面会多一些错误语句
最简单的办法就是通过提示词规范它 给它一个完整的示例
No branches or pull requests
希望能提供支持sql server数据库和es引擎的数据库查询方法
The text was updated successfully, but these errors were encountered: