其他 约 9 分钟
本文介绍 LangChain 中 OutputParser 的作用、常见类型、与 LCEL 的组合方式,以及什么时候该用解析器、什么时候该用模型原生结构化输出。 其他 约 8 分钟
本文介绍 LangChain 中 Prompt 的核心概念,以及 PromptTemplate、ChatPromptTemplate、MessagesPlaceholder、FewShotPromptTemplate 和 PipelinePromptTemplate 的基本用法。