GithubHelp home page GithubHelp logo

wangwendong1024 / textsql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caesarhq/textsql

0.0 0.0 0.0 3.99 MB

Home Page: https://censusgpt.com

License: MIT License

Shell 0.25% JavaScript 67.94% Python 28.30% CSS 1.93% HTML 1.57%

textsql's Introduction

Natural Language → SQL

Demo on US Census Data: CensusGPT.com

PRs Welcome Github Stars License GitHub commit activity

How it works:

With CensusGPT, ask any questions related to census data.

These natural language questions get converted to SQL using GPT-3.5 and are then used to query the census database.

Here are some examples:

Screenshot 2023-03-10 at 12 55 44 AM

Roadmap:

We're splitting the roadmap for this project broadly into three categories

Visualizations:

Currently, textSQL only supports visualizing zip codes and cities on an interactive map and bar chart using Mapbox + Plotly. But data can be visualized in other interesting ways such as Heatmaps and Pie charts. Not every kind of data can be (or should be) visualized on a map. For example, a query like "What percent of total crime in San Francisco is burglary vs in New York City" is perfect for visualizing as a stacked bar chart, but really hard to visualize on map.

Bar Chart:

Top 5 richest cities in Washington

[coming soon] Heatmap:

Screenshot 2023-03-10 at 12 58 33 AM

Datasets:

A lot of the users of this project have asked for historical census data (trends), weather, health, transportation and real-estate data. Feel free to create a pull request, drop a link to your dataset in our Discord, or contribute data via our dedicated submission form.

More data → Better CensusGPT

Query Interface:

Users build complex queries progressively. They start with a simple query like "Which neighborhoods in LA have the best schools?" and then progressively add details like "with median income that is under $100,000". One of the most powerful things that GPT-3.5 turbo enables is iterating on a query.

Turning search into a chat interface will allow the users to do just that -- iterate on a query and progressively build it.

How to Contribute:

Join our discord

ReadMe for the backend here

ReadMe for the frontend here

Note: Census data, like any other dataset, has its limitations and potential biases. Some data may not be collected or reported uniformly across different regions or time periods, which can affect the comparability of results. Users should keep these limitations in mind when interpreting the results of their queries and exercise caution when making decisions based on census data.

textsql's People

Contributors

alex-sun-kuo avatar alsonick avatar ananay avatar asaprahul avatar harmonygrams avatar joeydotdev avatar mnida avatar noahvember avatar nrghosh avatar st2-ev avatar tanujtiwari98 avatar the13thdev avatar tkim90 avatar veerbia avatar ysaxon avatar zoransa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.