Skip to content

Commit

Permalink
Add docs for combining output parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 12, 2023
1 parent fc81adb commit 9c6f114
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/docs/modules/prompts/output_parsers/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
hide_table_of_contents: true
sidebar_label: Output Parsers
sidebar_position: 2
---
Expand Down Expand Up @@ -56,3 +55,11 @@ This output parser can be used when you want to return a list of items.
import Comma from "@examples/prompts/comma_list_parser.ts";

<CodeBlock language="typescript">{Comma}</CodeBlock>

## Combinining Output Parsers

Output parsers can be combined using `CombininingOutputParser`. This output parser takes in a list of output parsers, and will ask for (and parse) a combined output that contains all the fields of all the parsers.

import Combining from "@examples/prompts/combining_parser.ts";

<CodeBlock language="typescript">{Combining}</CodeBlock>

0 comments on commit 9c6f114

Please sign in to comment.