From 4b2bbf9553ed949929ba02f5d5b32afca955a0b4 Mon Sep 17 00:00:00 2001 From: JunseongKim1104 Date: Tue, 7 Jan 2025 20:14:57 +0900 Subject: [PATCH] [E-2]03-OutputParser / 02-CommaSeparatedListOutputParser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit backtick 문법 반영 --- 13-LangChain-Expression-Language/09-Generator.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/13-LangChain-Expression-Language/09-Generator.ipynb b/13-LangChain-Expression-Language/09-Generator.ipynb index b27a90f18..e9db7f913 100644 --- a/13-LangChain-Expression-Language/09-Generator.ipynb +++ b/13-LangChain-Expression-Language/09-Generator.ipynb @@ -15,14 +15,14 @@ "\n", "## Overview\n", "\n", - "This tutorial demonstrates how to use a **user-defined generator** (or async generator) in a LangChain pipeline to process text outputs in a streaming fashion. Specifically, we’ll show how to parse a comma-separated string output into a Python list, all while maintaining the benefits of streaming from a Language Model.\n", + "This tutorial demonstrates how to use a **user-defined generator** (or async generator) in a `LangChain` pipeline to process text outputs in a streaming fashion. Specifically, we’ll show how to parse a comma-separated string output into a Python list, all while maintaining the benefits of streaming from a Language Model.\n", "\n", "We will also cover asynchronous usage, showing how to adopt the same approach with async generators. By the end of this tutorial, you’ll be able to:\n", "\n", "Implement a custom generator function that can handle streaming outputs\n", "Parse comma-separated text chunks into a list in real time\n", "Use both synchronous and asynchronous approaches for streaming\n", - "Integrate these parsers in a LangChain chain\n", + "Integrate these parsers in a `LangChain` chain\n", "Optionally, explore how `RunnableGenerator` can help implement custom generator transformations in a streaming context\n", "\n", "### Table of Contents\n", @@ -392,8 +392,8 @@ "\n", "### Why Use `RunnableGenerator`?\n", "- Modularity: Easily encapsulate your parsing logic as a “runnable” component.\n", - "- Consistency: The `RunnableGenerator` interface (`invoke`, `stream`, `ainvoke`, `astream`) is consistent with other LangChain runnables.\n", - "- Extendability: Combine multiple runnables (e.g., `RunnableLambda`, `RunnableGenerator`) in sequence for more complex transformations. " + "- Consistency: The `RunnableGenerator` interface ( `invoke` , `stream` , `ainvoke` , `astream` ) is consistent with other LangChain runnables.\n", + "- Extendability: Combine multiple runnables (e.g., `RunnableLambda` , `RunnableGenerator` ) in sequence for more complex transformations. " ] }, {