https://github.com/jcheng5/pharma-sidebot
https://github.com/jcheng5/pharma-sidebot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcheng5/pharma-sidebot
- Owner: jcheng5
- Created: 2024-10-22T07:33:59.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T05:48:37.000Z (6 months ago)
- Last Synced: 2024-12-22T05:41:58.817Z (4 months ago)
- Language: R
- Size: 39.1 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - jcheng5/pharma-sidebot - (R)
README
# Sidebot (Pharma Edition)
This is a demonstration of using an LLM to enhance a data dashboard written in [Shiny](https://shiny.posit.co/). It is based on code and data from the R Consortium's [R Submission Pilot 2 Project](https://github.com/rconsortium/submissions-pilot2).
To run locally, you'll need to create an `.Renviron` file in the repo root with `OPENAI_API_KEY=` followed by a valid OpenAI API key. (DO NOT commit `.Renviron` file to git!) Or if that environment value is set some other way, you can skip the `.Renviron` file.
Then run:
```r
pak::pak(c("bslib", "DBI", "dplyr", "duckdb", "fastmap", "fontawesome",
"ggplot2", "ggridges", "here", "plotly", "reactable", "shiny",
"hadley/elmer", "jcheng5/shinychat"))
```(Note that [{elmer}](https://github.com/hadley/elmer) and [{shinychat}](https://github.com/jcheng5/shinychat) are highly experimental and their APIs may change.)
## 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.