https://github.com/jcheng5/py-sidebot
https://github.com/jcheng5/py-sidebot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcheng5/py-sidebot
- Owner: jcheng5
- Created: 2024-07-04T01:06:08.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T04:32:44.000Z (about 2 months ago)
- Last Synced: 2025-03-18T01:11:29.162Z (about 1 month ago)
- Language: Python
- Size: 127 KB
- Stars: 42
- Watchers: 3
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - jcheng5/py-sidebot - (Python)
README
# Sidebot (Python Edition)
This is a demonstration of using an LLM to enhance a data dashboard written in [Shiny](https://shiny.posit.co/py/).
[**Live demo**](https://jcheng.shinyapps.io/sidebot)
To run locally, you'll need to create an `.env` file in the repo root with `OPENAI_API_KEY=` followed by a valid OpenAI API key, and/or `ANTHROPIC_API_KEY=` if you want to use Claude. Or if those environment values are set some other way, you can skip the .env file.
Then run:
```bash
pip install -r requirements.txt
shiny run --launch-browser
```## Warnings and limitations
This app sends at least your data schema to a remote LLM. As written, it also permits the LLM to run SQL queries against your data and get the results back. Please keep these facts in mind when dealing with sensitive data.
## Other versions
You can find the R version of this app at [https://github.com/jcheng5/r-sidebot](https://github.com/jcheng5/r-sidebot).