cfb1ddd6fc
- better formatting of input prompt - use invoke instead of predict
6 lines
146 B
Python
6 lines
146 B
Python
from langchain.llms import Ollama
|
|
|
|
input = input("What is your question?\n> ")
|
|
llm = Ollama(model="llama3.2")
|
|
res = llm.invoke(input)
|
|
print (res)
|