ollama/examples/langchain/main.py

5 lines
102 B
Python
Raw Normal View History

2023-08-09 18:49:22 +00:00
from langchain.llms import Ollama
llm = Ollama(model="llama2")
2023-08-11 06:35:19 +00:00
res = llm.predict("hello")
2023-08-09 18:49:22 +00:00
print (res)