ollama/examples/langchain-python-simplegenerate/main.py
Matt Williams 385eeea357 remove with
Signed-off-by: Matt Williams <m@technovangelist.com>
2023-10-11 21:26:11 -07:00

5 lines
102 B
Python

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