Files
humanlayer/examples/langchain-ollama
2025-06-03 13:30:15 -07:00
..
2024-11-19 15:56:43 +05:30
2024-11-25 00:06:34 +05:30
2024-11-19 15:56:43 +05:30
2024-11-25 20:49:59 -08:00
2024-11-25 20:49:59 -08:00
2024-11-25 20:49:59 -08:00
2025-06-03 13:30:15 -07: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:

  1. If you're comfortable with virtualenvs
  2. If you prefer docker

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 multiply function
  • 02-customer_email.py - A simple email send to new on board User by send_email() and take apporval from Admin