https://cloud.tencen
from langchain_core.runnables import RunnablePassthrough
# 创建Chain
chain = {"question": RunnablePassthrough()} | prompt | llm | output_parser
# 调用Chain
answer = laipuhuo.com chain.invoke('什么是图计算?')
print(answer)
# 创建Chain
chain = {"question": RunnablePassthrough()} | prompt | llm | output_parser
# 调用Chain
answer = laipuhuo.com chain.invoke('什么是图计算?')
print(answer)
全部评论
相关推荐