Open briansoegaard opened 3 weeks ago
question: have you tried other pdf, docx file? Im guessting the file is corrupted because you save the text file into another format.
It's definitely not the pdf file - it's a regular PDF. Docs files saved from Word fails too. The bug is more related to the need of configuring the node in Flowise before it's even possible to use the API.
Any further thoughts on this bug, @HenryHengZJ ? It looks like it's impossible to upsert pdf and docx files at all via the API. To me, that's a critical bug to anyone who integrates their chatflows in solutions with a knowledgebase that can change over time.
thats strange, I tried the following and it works:
1.) Have a chatflow with PDF loader:
2.) Execute the POST call:
@HenryHengZJ yes it works, but if you ask then something about the document with prediction api, it says that no doc was loaded
Describe the bug I want to upsert different files (e.g. PDF) via the API. Some Document Loaders return an error when using them via the Upsert API. The "Text File" Document Loader works fine, but, for example, "Pdf File" and "Docx File" return the following error (content of the JSON object returned by the
requests.post(...)
call){'statusCode': 500, 'success': False, 'message': 'Error: vectorsService.upsertVector - Error: End of data reached (data length = 0, asked index = 4). Corrupted zip ?', 'stack': {}}
I can't override the settings in the Pdf File or Docx File Document Loaders node via the API.
To Reproduce