A simple LangChain based chatbot that offers two types of interaction
-
Simple chatbot directly using
ollama
to runmistral
-
Simple RAG Chatbot adding Chroma, Hugging Face Embeddings
-
Install ollama on your machine:
curl -fsSL https://ollama.com/install.sh | sh
NoteIf you are running on Mac/Windows, just download from Ollama website: ollama for mac ollama for windows -
Download your desired module:
ollama pull mistral # optional models ollama pull sroecker/granite-7b-lab ollama pull sroecker/merlinite
-
Create a new virtual environment (or if you are comfortable with it, use an existing environment)
python3.11 -m venv venv source venv/bin/activate
-
Install the dependencies
pip install -r requirements.txt
-
Run the Chainlit application
chainlit run -h src/main.py
-
Thanks to the authors of the following examples, libraries, patterns, and tools: