Unverified Commit cfb1ddd6 authored by Simon Schampijer's avatar Simon Schampijer Committed by GitHub
Browse files

examples: update langchain-python-simple (#3591)

- better formatting of input prompt
- use invoke instead of predict
parent 3987acd7
from langchain.llms import Ollama
input = input("What is your question?")
input = input("What is your question?\n> ")
llm = Ollama(model="llama3.2")
res = llm.predict(input)
res = llm.invoke(input)
print (res)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment