摘要:
在做聊天应用时,我们的提示词往往是一串按角色分好的消息 [ SystemMessage { "content": "xxx", }, HumanMessage { "content": "xxx", }, 占位符1 AIMessage { "content": "xxx", }, 占位符2 Huma 阅读全文
posted @ 2025-10-23 14:33
Zhentiw
阅读(3)
评论(0)
推荐(0)
摘要:
类名 用途 ChatPromptTemplate 构造整个多轮提示词结构 SystemMessagePromptTemplate 设置系统规则 / 行为模式 HumanMessagePromptTemplate 模拟用户输入 AIMessagePromptTemplate 模拟模型输出(上下文中使用 阅读全文
posted @ 2025-10-23 13:40
Zhentiw
阅读(3)
评论(0)
推荐(0)

浙公网安备 33010602011771号