Skip to content

This app allows you to explore a dataset by asking questions about it.

License

Notifications You must be signed in to change notification settings

michaelweiss/chat-with-your-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This app allows you to explore a dataset by asking questions about it. It uses the OpenAI API to generate code to answer your questions and visualize the results.

This is a rewrite from the ground up of the Chat2VIS app.

Dependencies

The app uses streamlit, pandas, and matplotlib.

You need an OpenAI API key to use this app. You can get one here. You also need to add it your environment variables as OPENAI_API_KEY.

How to use

Start the app by using the following command:

streamlit run chat_data.py

Upload a dataset you want to examine.

Then, ask start questions of the data. For example, if your dataset contains information about companies, their countries of origin, and funding received, you can ask:

  • Show the average funding by company.
  • Show the number of companies by country.
  • Show the total funding by country.

The app will generate code to answer your questions. If the code executes successfully, it will also generate a plot. You can then copy and paste the code.

Sometimes, you need to tweak your question to get the code to work properly.

About

This app allows you to explore a dataset by asking questions about it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages