Skip to content

Commit e388bcf

Browse files
committed
✨ feat(201): add expression language samples
Signed-off-by: Haili Zhang <haili.zhang@outlook.com>
1 parent c3841e2 commit e388bcf

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

201-langchain-modules/src/slides.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ level: 2
210210

211211
<Val id="webup.parserSampleJSONZod" />
212212

213+
---
214+
level: 2
215+
---
216+
217+
# Expression Language <Version>0.0.121</Version>: LLM Chain
218+
219+
现在可以用管道直接把 Prompt ➡️ Model ➡️ Output Parser 串联起来
220+
221+
<Val id="webup.pipeSampleLLM" />
222+
213223
---
214224
layout: quote
215225
---
@@ -307,6 +317,36 @@ level: 2
307317

308318
![](https://s2.loli.net/2023/07/30/HQx5JIGrEVPfz8R.jpg)
309319

320+
---
321+
level: 2
322+
---
323+
324+
# Expression Language <Version>0.0.121</Version>: LLM Chain + Retriever
325+
326+
可以用管道直接把 Prompt ➡️ Model ➡️ Output Parser ➡️ Retriever 串联起来
327+
328+
<Val id="webup.pipeSampleLLMRetriever" />
329+
330+
---
331+
level: 2
332+
---
333+
334+
# Expression Language <Version>0.0.121</Version>: LLM Chain + Retriever
335+
336+
在上个示例中,我们将字符串输入直接传递到链路中;如希望链路接受多个输入,可以传递函数映射来解析输入
337+
338+
<Val id="webup.pipeSampleLLMRetrieverInputs" />
339+
340+
---
341+
level: 2
342+
---
343+
344+
# Expression Language <Version>0.0.121</Version>: LLM Chain + Retriever
345+
346+
在上个示例中,我们使链路接受了多个输入;我们还可以通过格式化函数添加对话历史记录
347+
348+
<Val id="webup.pipeSampleLLMRetrieverConversation" />
349+
310350
---
311351
layout: quote
312352
---

pdfs/201-langchain-modules.pdf

-316 KB
Binary file not shown.

0 commit comments

Comments
 (0)