Streamlit Convo Save is a tool comprising a Chrome Extension and an Express backend for saving Streamlit chat conversations.
Note: You will need to have a running mongo database in default port 27017
To use the Chrome Extension in development mode, follow these steps:
- Open Google Chrome and go to the Extensions page by typing
chrome://extensions
in the address bar. - Enable the "Developer mode" toggle switch located at the top right corner of the page.
- Click on the "Load unpacked" button and select the folder containing the Chrome Extension files.
- Once the extension is loaded, you can test it by navigating to a Streamlit chat conversation and using the features provided by the extension.
- Make any necessary changes to the extension's code and reload the extension to see the updated changes.
To run the Express backend (written in express-generator) with the DEBUG flag, follow these steps:
-
Install the necessary dependencies by running the command:
npm install
-
Start the Express backend in debug mode by running the command:
npm start
-
(GET) / : This endpoint is used to retrieve the conversations already stored in the database
-
(POST) /saveConvo : This endpoint is used to save a Streamlit chat conversation to the database.
-
(GET) /test : This endpoint is used for testing purposes.
Tip: You can click command+[x] to delete without confirmation prompt
curl -k -X POST http://localhost:3000/saveConv \
-H "Content-Type: application/json" \
-d '{"model": "modelX", "name": "title", "userQueries": ["User question 1", "User question 2"], "assistantAnswers": ["Assistant answer 1", "Assistant answer 2"]}'
````
``
## Contributing
Guidelines for contributing to the project.
## License
Licensing information for the project.