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