ollama/examples/langchain-python-simple/main.py
Matt Williams e1afcb8af2 simple gen to simple
Signed-off-by: Matt Williams <m@technovangelist.com>
2023-10-11 21:29:07 -07:00

4 lines
102 B
Python

from langchain.llms import Ollama
llm = Ollama(model="llama2")
res = llm.predict("hello")
print (res)