ollama/examples/langchain-python-simple/main.py
Dr Nic Williams e8aaea030e
Update 'llama2' -> 'llama3' in most places (#4116)
* Update 'llama2' -> 'llama3' in most places

---------

Co-authored-by: Patrick Devine <patrick@infrahq.com>
2024-05-03 15:25:04 -04:00

6 lines
141 B
Python

from langchain.llms import Ollama
input = input("What is your question?")
llm = Ollama(model="llama3")
res = llm.predict(input)
print (res)