ollama/examples/langchain/main.py

5 lines
100 B
Python
Raw Normal View History

2023-08-09 18:49:22 +00:00
from langchain.llms import Ollama
llm = Ollama(model="llama2")
res = llm.predict("hi!")
print (res)