Closed SebastianVomMeer closed 2 months ago
Converting the fileBuffer in app/api/chat/llamaindex/documents/helper.ts seems to be a workaround for me, but I don't have a clue about this topic.
console.log(`Processing uploaded document of type: ${mimeType}`);
return await reader.loadDataAsContent(new Uint8Array(fileBuffer));
Thanks. Fixed in Release 0.1.26
After creating a new application with version 0.1.25 I cannot upload PDF files with the web interface.
The POST to http://localhost:3000/api/chat/upload responds with 500:
Related log:
This fails when the application runs locally on my Ubuntu 20.04 machine as well as inside a docker container with image nextjs-docker (started as described in your generated README.md). It happens in Chrome and Firefox.
I use azure-openai as model provider but I don't think that this is related. Indexing PDFs with
npm run generate
works just fine.