{"id":31063930,"url":"https://github.com/didiforgithub/gptsql","last_synced_at":"2025-09-15T13:56:59.652Z","repository":{"id":189696322,"uuid":"681110883","full_name":"didiforgithub/GPTSQL","owner":"didiforgithub","description":"业务语言查询数据库系统，使用DRF构建，前端拟使用Gradio迅速搭建","archived":false,"fork":false,"pushed_at":"2023-11-09T10:25:09.000Z","size":333,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-09T12:31:22.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/didiforgithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-21T09:36:42.000Z","updated_at":"2023-11-09T12:31:25.775Z","dependencies_parsed_at":null,"dependency_job_id":"99e5e508-ab82-4716-a2f2-618106c1a53a","html_url":"https://github.com/didiforgithub/GPTSQL","commit_stats":null,"previous_names":["fucking-dog/gptsql","didiforgithub/gptsql"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/didiforgithub/GPTSQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didiforgithub%2FGPTSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didiforgithub%2FGPTSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didiforgithub%2FGPTSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didiforgithub%2FGPTSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didiforgithub","download_url":"https://codeload.github.com/didiforgithub/GPTSQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didiforgithub%2FGPTSQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275267362,"owners_count":25434612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-15T13:56:57.572Z","updated_at":"2025-09-15T13:56:59.639Z","avatar_url":"https://github.com/didiforgithub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 业务语言查询数据库系统\n\n项目使用Django restful framework 完成，启动方法如下：\n\n```\ncd GPT_SQL\npip install -r requirements.txt\npython manage.py runserver\n```\n主要模块\n1. Tools，与数据库相关的操作封装在这一模块中\n2. Views，对外提供的API封装在这一模块中\n\n对外提供的API主要是4个功能\n1. 获取数据库表信息\n2. 自然语言转SQL（Openai版本与非Openai版本）\n3. SQL函数执行并返回结果\n4. 自然语言直接执行查询数据\n\n之后需要修改的话，主要是在2进行修改，需要写一个Prompt抽取业务流程\n\n需要补充的部分，主要是\n1. 知识库的baseid连接 —— 用户选中某个固定的base之后根据问题在这个知识库进行检索\n2. 检索知识与数据知识的连接\n3. 用户系统连接\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidiforgithub%2Fgptsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidiforgithub%2Fgptsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidiforgithub%2Fgptsql/lists"}