基于langchain的txt2sql 工具开发



GitHub - WeitaoLu/Text2SQL: LangChain-based text2sql

仓库链接⬆️

基于langchain做的txt2sql functions,api 和 逐步版的jupyter notebook(也可以改造用于别的llm任务)

我也在继续摸索langchain 开发,这是做的第一个project。

欢迎大家尝试着用来开发应用&提供宝贵的意见!一起进步!

如果遇到问题请在评论区/issue 留言,新人谢谢大家!

Google SDE大佬做的简单demo⬇️

可以选数据库然后问一些问题,比如可以问Chinook, 

@代表选step by step. #代表选detailed.

1.hi,introduce yourself  2. @I want to query the table names of my schema, can you write a query and run that sql for me? 3.@excellent, now I want to know the top 4 best-selling artists.  4.  can you explain the join logic in this query? I'm a little confused  5. #Hi agent, help me for the question:Write a SQL query to retrieve the names of the top 3 customers who have made the highest total purchases.

https://smartquery-e1951e951dab.herokuapp.com/chat


​​​​​​​

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值