Install python, Langchain, Chroma, and Streamlit.
- Vector database
- Chatbot
- Mysql for response stats (optional)
REDhat 8, python 3.9, Lanchain 0.1, Chroma 0.4.24, Streamlit 1.36
- Vector database
-
Downlaod Chroma, Langchain.
-
Put the data file (here is in csv format, could be other format) at DATAPATH.
-
Run saveChromadb.py.
-
Get the chroma file from DBPATH.
-
Use podman to launch the Chroma server with the chroma file:
podman run -d --rm --name [chromadbname] -v [/pathto/your/chromafile] -e IS_PERSISTENT=TRUE chromadb/chroma:latest
- Chatbot
- Downlaod Lanchain, Streamlit.
- Streamlit run chatbot.py.
-
Mysql for response stats (optional)
If you would like to save users' response or feedback, set up mysql access.