To install the Python library requirements, run
pip install -r requirements.txtTo update requirements, modify the libraries in requirements.in and run
pip-compile requirements.inTo run data_cleaning.ipynb, include the desired source .csv file located in csv/.
To run the app locally, run
streamlit run app.pyTo set up the MongoDB database, from the repo root,
cd webapp/.streamlit
touch secrets.tomlIn secrets.toml, write your MongoDB username and password in the format (with quotation marks),
mongo_username = "{username}"
mongo_password = "{password}"- Can change the character and sentence thresholds in the
preprocessfunction ofevaluator.py
scripts/ contains Python files and Jupyter Notebooks that can be run on individual CSV (found in csv/) and other formats of data to filter and process data as well as generate responses from OpenAI found in their documentation here.
Run
pre-commit install