ollama/examples/langchain-python-simple/main.py
Kim Hallberg 0be8baad2b
Update and Fix example models (#6065)
* Update example models

* Remove unused README.md
2024-07-29 23:56:37 -07:00

6 lines
143 B
Python

from langchain.llms import Ollama
input = input("What is your question?")
llm = Ollama(model="llama3.1")
res = llm.predict(input)
print (res)