Simple and easy way to start learning LangChain
📖 Read the full tutorial: Run LangChain Locally in 15 Minutes Without a Single API Key
- Python 3.13.0
Installing pyenv is optional but recommended for managing Python versions.
pyenv install 3.13.0
pyenv local 3.13.0Follow the instructions at https://ollama.com/download/ to install Ollama on your system.
ollama serve
ollama pull llama3.2python -m venv venv
source venv/bin/activatepip install langchain==1.0.3 langchain-ollama==1.0.0or install directly from requirements.txt:
pip install -r requirements.txtpython main.pyYou should an output similar to:
Fog-get about it, it's always raining in San Francisco!