We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First, the documentation for Files says that the fs API is called readText but the actual function is called readFile.
Second, the docs say that readFile will automatically convert pdfs to text but when I try the following script it does not.
script({ title: "test1" }) const file = await fs.readFile("ex1.pdf") def("FILE", file.content) $Summarize FILE
Summarize FILE
Screen shot of what is passed to LLM:
Finally, the docs for Files show a used of "defFile" with using fs.findFiles. It doesn't seem that defFile is defined.
Also, the need to use "await" adds complexity. Can I instead just say:
def("FILE", fs.readFile("ex1.pdf"))
I'm worried that non-JavaScript users will not understand when and where to use await.
The text was updated successfully, but these errors were encountered:
This is fixed in the latest sources.
Sorry, something went wrong.
The documentation is ahead of the release.
Which page? @bzorn
pelikhan
No branches or pull requests
First, the documentation for Files says that the fs API is called readText but the actual function is called readFile.
Second, the docs say that readFile will automatically convert pdfs to text but when I try the following script it does not.
script({ title: "test1" })
const file = await fs.readFile("ex1.pdf")
def("FILE", file.content)
$
Summarize FILE
Screen shot of what is passed to LLM:
Finally, the docs for Files show a used of "defFile" with using fs.findFiles. It doesn't seem that defFile is defined.
Also, the need to use "await" adds complexity. Can I instead just say:
def("FILE", fs.readFile("ex1.pdf"))
I'm worried that non-JavaScript users will not understand when and where to use await.
The text was updated successfully, but these errors were encountered: