dodeeric / langchain-ai-assistant-with-hybrid-rag

This is a LLM chatbot coded with LangChain. The web interface is coded with Streamlit. It implements a hybrid RAG (keyword and semantic search) and chat memory.
https://bmae-ragai-webapp.azurewebsites.net
GNU General Public License v3.0
8 stars 1 forks source link

why reboot app in streamlit wipes the db? #8

Closed dodeeric closed 1 month ago

dodeeric commented 1 month ago

but not in github codespace

dodeeric commented 1 month ago

https://chatgpt.com/share/325b95d0-f58d-415b-b07f-2937bfa1a329

When deploying an application on Streamlit Community Cloud, a common issue users encounter is that their application's database, such as Chroma DB, gets wiped after a reboot. This usually happens due to the following reasons:

Ephemeral Storage: Streamlit Community Cloud provides ephemeral storage for deployed applications. This means that any data stored on the server's local file system can be lost when the server is restarted, updated, or redeployed. As a result, if Chroma DB or any other database is storing its data on the local filesystem, it will be wiped when the application restarts.

Stateless Applications: Streamlit Community Cloud treats applications as stateless by default. This implies that applications should not rely on the local state to persist data between sessions or reboots.