Skip to content

Commit e19b822

Browse files
authored
fix: Fix BaseDocumentLoader import errors in fs document loaders (langchain-ai#8442)
1 parent e9d1136 commit e19b822

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žlangchain/src/document_loaders/fs/buffer.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { readFile as ReadFileT } from "node:fs/promises";
22
import { Document } from "@langchain/core/documents";
33
import { getEnv } from "@langchain/core/utils/env";
4-
import { BaseDocumentLoader } from "../base.js";
4+
import { BaseDocumentLoader } from "@langchain/core/document_loaders/base";
55

66
/**
77
* Abstract class that extends the `BaseDocumentLoader` class. It

β€Žlangchain/src/document_loaders/fs/text.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { readFile as ReadFileT } from "node:fs/promises";
22
import { Document } from "@langchain/core/documents";
33
import { getEnv } from "@langchain/core/utils/env";
4-
import { BaseDocumentLoader } from "../base.js";
4+
import { BaseDocumentLoader } from "@langchain/core/document_loaders/base";
55

66
/**
77
* A class that extends the `BaseDocumentLoader` class. It represents a

0 commit comments

Comments
Β (0)