ollama/examples/langchain/main.py
2023-08-10 20:23:50 -07:00

4 lines
100 B
Python

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