Find answers from the community

Updated 6 months ago

Is there a way to use an uploaded file

At a glance

The community member is using a web app with SvelteKit on the frontend and FastAPI on the backend, where users upload files. The community member is trying to use the LlamaParse library, but it only accepts file paths as input, and the community member does not want to create temporary files just to send them. One community member suggests that the LlamaParse Python client allows passing in the file bytes, which could be a potential solution.

Is there a way to use an uploaded file rather then the file path as the input into llamaParse?
J
L
4 comments
I have a web app using sveltekit on the frontend and fastapi on the backend
user uploads the file and gets sent to the backend as an UploadFile.
from what I have seen LlamaParse only accepts file paths as an input and I don't really want to be making temp files just to send them
Have not found any alternative solution from just creating temp files. I have implemented temp files for the time being however if anyone knows a better solution let me know please πŸ™‚
The llama parse python client let's you pass in the file bytes
Add a reply
Sign up and join the conversation on Discord