A reflection & journaling app using tinyllama. Takes your journalling and asks you thoughtful questions about it!
- WSL2 or Ubuntu (currently Windows and macOS are not supported)
- Python 3
- Ollama
- A local large language model that works with Ollama. This repository uses tinyllama, but you can change this in `app.py`.
- Go to your terminal.
- Clone this repository using
git clone https://github.com/astrosnat/tinyreflections.git
. - Change the working directory with the command
cd ~/tinyreflections
. - Run
python3 -m venv venv
. - Run
source venv/bin/activate
. - Use
pip install -r requirements.txt
. - In a new terminal window, run
ollama serve
to start ollama. - In your original terminal window, run
streamlit run app.py
. - Open your Streamlit app in your browser of choice.
- Have fun!
This app uses a local large language model. It runs on your machine and does not talk to the internet, thus using a minimal amount of energy. To the best of my knowledge, tinyllama has no "memory" and will not remember anything you write.
Although this app cannot record or store what you write it is possible that the large language model may output something harmful or upsetting. I am trying my best to make it not do this, but as it is an alpha use at your own risk.
I copied some of the architecture and code from friendlydebateapp.
I welcome contributions. This project is MIT Licensed so do what you want with it :) Just make sure to write a nice and comprehensive description in your pull request.