文件最后提交记录最后更新时间
chore: add license and newline 7 个月前
style: add newlint Signed-off-by: yuluo-yx <yuluo08290126@gmail.com> 1 年前
chore: add some request.http files Signed-off-by: gaoyonglong <> 1 年前
chore: add some request.http files Signed-off-by: gaoyonglong <> 1 年前
bugfix: fixed issues such as mismatch between port numbers in .http files and .yml files, and some formatting problems. (#412) * bugfix:ensure the correct port number and formatting issues * bugfix:ensure the correct port number and formatting issues --------- Co-authored-by: maple <14118288+gao-shengkai525866@user.noreply.gitee.com>5 个月前
README.md

使用 Spring AI Alibaba 执行 SQL

使用示例

curl localhost:10092/sql \
  -H"Content-type: application/json" \
  -d'{"question":"How many books has Craig Walls written?"}'

返回值

{
  "sqlQuery": "SELECT COUNT(*) FROM Books INNER JOIN Authors ON Books.author_ref = Authors.id WHERE Authors.firstName = 'Craig' AND Authors.lastName = 'Walls'",
  "results": [
    {
      "COUNT(*)": 4
    }
  ]
}