AI Agent Note (LangChain调用通义千问大模型)
Using LangChain to call Tongyi Qianwen
0x03、Chain calling of LLM
In previous article, we firstly get the prompt, than we use prompt to call LLM.
Here is another method to call LLM. We combine the prompt template with LLM, and name it chain.
1 | # Chain calling of LLM |

Than, we use chain calling.
1 | resp = chain.stream(input={"text": "This is chain calling of LLM"}) |

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 hi-story's blog!
