We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c65408 commit aea047eCopy full SHA for aea047e
server/utils/documentLoader.js
@@ -3,9 +3,8 @@ import { TextLoader } from "langchain/document_loaders/fs/text";
3
import { PDFLoader } from "langchain/document_loaders/fs/pdf";
4
5
const getFileLoader = (fileExt, filePath) => {
6
- let loader;
7
-
8
- switch (fileExt) {
+ let loader;
+ switch (fileExt) {
9
case '.pdf':
10
loader = new PDFLoader(filePath);
11
break;
0 commit comments