{"id":25028785,"url":"https://github.com/javaaidev/simple-text-to-sql","last_synced_at":"2025-10-25T04:16:14.620Z","repository":{"id":273062432,"uuid":"869874030","full_name":"JavaAIDev/simple-text-to-sql","owner":"JavaAIDev","description":"Simple Text to SQL (No RAG), Spring AI Implementation","archived":false,"fork":false,"pushed_at":"2025-09-19T10:04:57.000Z","size":1427,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T11:31:36.893Z","etag":null,"topics":["java","spring-ai","spring-boot","springframework","text-to-sql"],"latest_commit_sha":null,"homepage":"https://javaaidev.com/docs/rag/samples/text-to-sql","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JavaAIDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"alexcheng1982","github":"alexcheng1982"}},"created_at":"2024-10-09T03:35:59.000Z","updated_at":"2025-09-19T10:05:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7cf4cb79-15a0-4ffb-bf84-0ddd6cca121c","html_url":"https://github.com/JavaAIDev/simple-text-to-sql","commit_stats":null,"previous_names":["javaaidev/simple-text-to-sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JavaAIDev/simple-text-to-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaAIDev%2Fsimple-text-to-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaAIDev%2Fsimple-text-to-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaAIDev%2Fsimple-text-to-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaAIDev%2Fsimple-text-to-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JavaAIDev","download_url":"https://codeload.github.com/JavaAIDev/simple-text-to-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaAIDev%2Fsimple-text-to-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931652,"owners_count":26070788,"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-10-08T02:00:06.501Z","response_time":56,"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":["java","spring-ai","spring-boot","springframework","text-to-sql"],"created_at":"2025-02-05T20:47:46.285Z","updated_at":"2025-10-25T04:16:14.613Z","avatar_url":"https://github.com/JavaAIDev.png","language":"Java","funding_links":["https://ko-fi.com/alexcheng1982","https://github.com/sponsors/alexcheng1982"],"categories":[],"sub_categories":[],"readme":"# Simple Text to SQL (No RAG)\n\n[![build](https://github.com/JavaAIDev/simple-text-to-sql/actions/workflows/build.yaml/badge.svg)](https://github.com/JavaAIDev/simple-text-to-sql/actions/workflows/build.yaml)\n\n\u003e See JavaAIDev [article](https://javaaidev.com/docs/rag/samples/text-to-sql) for more details.\n\nTest data: [Netflix data](https://github.com/neondatabase/postgres-sample-dbs?tab=readme-ov-file#netflix-data)\n\nHow to run:\n\n1. Requires Java 21 to build and run.\n2. Start Postgres database using Docker Compose.\n3. Start the server and use [Chat Agent UI](http://localhost:8080/webjars/chat-agent-ui/index.html)\n   to run query.\n\nSample query:\n\n```text\nHow many movies were produced in the United States?\n```\n\nOutput:\n\n```text\nThe total number of movies produced in the United States is 2058.\n```\n\nSee the screenshot below.\n\n![Chat Agent UI](simple-text-to-sql-ui.png)\n\n## Full Text-to-SQL Implementation\n\nFor a complete Text-to-SQL implementation, check out my [course](https://www.udemy.com/course/spring-ai-text-to-sql/?referralCode=6180D9A02FA8BA9D4F60).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavaaidev%2Fsimple-text-to-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavaaidev%2Fsimple-text-to-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavaaidev%2Fsimple-text-to-sql/lists"}