From 3f2559bce4b512adb52cd5564bff1bbbee1dd08a Mon Sep 17 00:00:00 2001 From: zyx <814780329@qq.com> Date: Thu, 25 Jun 2026 16:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96:=204.1.2.3?= =?UTF-8?q?=20=E8=BF=9B=E9=98=B6=E5=AE=9E=E8=B7=B5=EF=BC=9A=E5=A4=9A?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=A4=9A=E8=BE=93=E5=87=BA=E5=A4=8D=E6=9D=82?= =?UTF-8?q?=E7=BA=BF=E6=80=A7=E4=BB=BB=E5=8A=A1RunnableMap=E9=83=A8?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/chapter4.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guide/chapter4.md b/docs/guide/chapter4.md index 74021a4..45e5a17 100644 --- a/docs/guide/chapter4.md +++ b/docs/guide/chapter4.md @@ -208,11 +208,12 @@ marketing_prompt = PromptTemplate( ) # 3. 多输入多输出线性链(教学标准版) + overall_chain = ( # Step 1:生成卖点 + 透传原始输入 RunnableMap({ "sell_points": sell_point_prompt | llm | (lambda x: x.content), - "target_audience": RunnablePassthrough(), + "target_audience": lambda x: x["target_audience"], }) # Step 2:营销话术生成 | marketing_prompt