Skip to content

[BUG] Provided file is ignored when upserting via API #3560

@kennyakers

Description

@kennyakers

Describe the bug
When POSTing a file to the /vector/upsert/{id} endpoint, the provided file is ignored, and instead the file uploaded within the Flowise UI is upserted. In my case, I'm upserting PDFs to a Pinecone vector store. All credentials have been double-checked.

To Reproduce

An example upsertion flow is shown below:
Screenshot 2024-11-24 at 6 12 46 PM

Override config has been enabled so API calls should be able to overwrite the PDF file:
Screenshot 2024-11-24 at 6 26 25 PM

Note that the file originally uploaded is of the classic book Frankenstein. When I make a call to upsert a different book, Of Mice and Men, Frankenstein still ends up getting upserted (see response):
Screenshot 2024-11-24 at 6 17 01 PM

If I remove the file from the "PDF Loader" node, uploading any PDF (I even used the same Frankenstein file) to it will result in 0 documents getting upserted:
Screenshot 2024-11-24 at 6 14 26 PM

Expected behavior
The file provided in the form data should be upserted, not the file originally uploaded.

Setup

  • Installation: Repocloud.io instance
  • Flowise Version 2.1.5

Additional context
This only started becoming a problem ~3-4 weeks ago (i.e., beginning of November). It was working for months before then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin-workIssue in work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions