Skip to content

Commit

Permalink
chore: update parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Oct 22, 2024
1 parent fbd4401 commit 859bc1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"consola": "^3.2.3",
"console-table-printer": "^2.12.1",
"croner": "9.0.0",
"d3-dsv": "^2.0.0",
"d3-dsv": "^3.0.1",
"date-fns": "^4.1.0",
"destr": "^2.0.3",
"elysia": "^1.1.23",
Expand All @@ -101,7 +101,7 @@
"mammoth": "^1.8.0",
"nodemon": "^3.1.7",
"ofetch": "^1.4.1",
"officeparser": "^4.2.0",
"officeparser": "^5.0.0",
"pdf-parse": "^1.1.1",
"pkg-types": "1.2.1",
"scule": "^1.3.0",
Expand All @@ -115,15 +115,15 @@
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@total-typescript/ts-reset": "^0.6.1",
"@types/bun": "^1.1.11",
"@types/bun": "^1.1.12",
"@types/lodash": "^4.17.12",
"@types/nodemon": "^1.19.6",
"@vitest/ui": "^2.1.3",
"changelogen": "^0.5.7",
"eslint": "^9.13.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"oxlint": "0.10.1",
"oxlint": "0.10.2",
"typedoc": "0.26.10",
"typedoc-plugin-coverage": "3.3.0",
"typedoc-plugin-markdown": "4.2.9",
Expand Down
7 changes: 5 additions & 2 deletions src/rabbit-hole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { basename, extname, resolve } from 'node:path'
import { CSVLoader } from '@langchain/community/document_loaders/fs/csv'
import { DocxLoader } from '@langchain/community/document_loaders/fs/docx'
import { PDFLoader } from '@langchain/community/document_loaders/fs/pdf'
import { PPTXLoader } from '@langchain/community/document_loaders/fs/pptx'
import { PPTXLoader as OfficeLoader } from '@langchain/community/document_loaders/fs/pptx'
import { CheerioWebBaseLoader } from '@langchain/community/document_loaders/web/cheerio'
import { Document } from '@langchain/core/documents'
import { cheshireCat } from '@lg/cheshire-cat.ts'
Expand Down Expand Up @@ -48,7 +48,10 @@ export class RabbitHole {
'application/json': JSONLoader,
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': CSVLoader,
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': DocxLoader,
'application/vnd.openxmlformats-officedocument.presentationml.presentation': PPTXLoader,
'application/vnd.openxmlformats-officedocument.presentationml.presentation': OfficeLoader,
'application/vnd.oasis.opendocument.text': OfficeLoader,
'application/vnd.oasis.opendocument.presentation': OfficeLoader,
'application/vnd.oasis.opendocument.spreadsheet': OfficeLoader,
}

private constructor() {
Expand Down

0 comments on commit 859bc1f

Please sign in to comment.