Skip to content

Commit 22c0443

Browse files
authored
Merge pull request #32 from ploomber/demo
chat with csv
2 parents b57e8f1 + c9886e3 commit 22c0443

File tree

7 files changed

+505
-0
lines changed

7 files changed

+505
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.11
2+
3+
COPY app.py app.py
4+
COPY chat.py chat.py
5+
COPY static/ static/
6+
RUN pip install git+https://github.com/ploomber/jupysql.git@master
7+
RUN pip install requests solara openai pandas duckdb duckdb-engine matplotlib
8+
9+
10+
ENTRYPOINT ["solara", "run", "app.py", "--host=0.0.0.0", "--port=80"]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Data querying and visualisation App
2+
3+
This query and data visualisation application is designed to provide a user-friendly chatbot interface to interact with your data, making data exploration and analysis a breeze.
4+
5+
6+
## Getting Started
7+
8+
To get started with this app, follow these steps:
9+
10+
1. Login to your [Ploomber Cloud](https://ploomber.io/) account.
11+
12+
2. Follow the [steps](https://docs.cloud.ploomber.io/en/latest/apps/solara.html) for deploying a Solara application and upload the `app.zip` file provided in the example. Ensure to add your own `openai` API Key in `app.py` file.
13+
14+
## How to use
15+
16+
1. **Dataset**: Click the `SAMPLE DATASET` button to load a sample csv file, or upload your own content by dragging a file to the drop area. You may also clear the loaded data by clicking the `Clear Dataset` button.
17+
18+
2. **Number of preview rows**: Input the desired number of preview rows to be displayed.
19+
20+
3. **Interaction**: You may ask the chatbot natural language queries like : `top 20 rows of table`, `unique values of column with counts`, etc.
21+
22+
4. **Data visualisation**: Visualize your data on the fly. Currently, the app supports histogram and box plot on a specific column, e.g., `histogram on column`.
23+
24+
5. **Export Results**: The app allows you to export the charts, or query results.

0 commit comments

Comments
 (0)