Skip to content

Commit

Permalink
Merge pull request langchain-ai#764 from hwchase17/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
nfcampos authored Apr 12, 2023
2 parents 2622bf4 + 9c6f114 commit 2886ad9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
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>
2 changes: 1 addition & 1 deletion langchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langchain",
"version": "0.0.53",
"version": "0.0.54",
"description": "Typescript bindings for langchain",
"type": "module",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions langchain/src/document_loaders/tests/puppeteer.int.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { expect, test } from "@jest/globals";
import { PuppeteerWebBaseLoader } from "../web/puppeteer.js";

test("Test puppeteer web scraper loader", async () => {
test.skip("Test puppeteer web scraper loader", async () => {
const loader = new PuppeteerWebBaseLoader("https://www.google.com/");
const result = await loader.load();

expect(result).toBeDefined();
expect(result.length).toBe(1);
}, 20_000);

test("Test puppeteer web scraper loader with evaluate options", async () => {
test.skip("Test puppeteer web scraper loader with evaluate options", async () => {
let nrTimesCalled = 0;
const loader = new PuppeteerWebBaseLoader("https://www.google.com/", {
launchOptions: {
Expand Down

0 comments on commit 2886ad9

Please sign in to comment.