ollama/examples/langchain/main.py
2023-08-10 23:35:19 -07:00

4 lines
102 B
Python

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