ollama/examples/langchain-python-simple/main.py
2024-09-25 11:11:22 -07:00

6 lines
143 B
Python

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