llamaindex
Advanced tools
Comparing version 0.0.7 to 0.0.8
# llamaindex | ||
## 0.0.8 | ||
### Patch Changes | ||
- ea5038e: Disabling PDF loader for now to fix module import | ||
## 0.0.7 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "llamaindex", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "js-tiktoken": "^1.0.7", |
@@ -5,3 +5,2 @@ import { Document } from "../Node"; | ||
import { DEFAULT_FS } from "../storage/constants"; | ||
import { default as pdfParse } from "pdf-parse"; | ||
import _ from "lodash"; | ||
@@ -17,6 +16,4 @@ | ||
): Promise<Document[]> { | ||
let dataBuffer = (await fs.readFile(file)) as any; | ||
const data = await pdfParse(dataBuffer); | ||
return [new Document({ text: data.text, id_: file })]; | ||
throw new Error("not implemented"); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
699126
18455