mirror of
https://github.com/humanlayer/humanlayer.git
synced 2025-08-20 19:01:22 +03:00
LangChain-Ollama Examples
Install Ollama
First need to install ollama in local
visit to ollama website
After download pull lamma 3.1 in local and start
ollama run llama3.1
Two ways to get started:
If you're comfortable with virtualenvs
Activate a new virtualenv however you prefer, for example:
python3 -m venv venv
source venv/bin/activate
install requirements
pip install -r requirements.txt
python 01-math_example.py
If you prefer docker
docker compose run examples 01-math_example.py
All Examples
- 01-math_example.py - A simple math example that uses functionlayer to gate access to the
multiplyfunction - 02-customer_email.py - A simple email send to new on board User by
send_email()and take apporval from Admin