Skip to content

[Bug] Metadata filters not being applied in Assistant listFiles function #335

@pwetherbee

Description

@pwetherbee

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing Github issues and Community Forum, and I could not find an existing post for this bug

Describe the bug
Filtering file results by metadata does not apply filter and instead returns all files in the assistant.

Error information
No errors, just unexpectedly receiving all files instead of the filtered list.

Steps to reproduce the issue locally

const pc = new Pinecone();
const assistant = pc.Assistant(assistantName);

 const files = await assistant.listFiles({
    filter: {
      metadata: {
        version: "v1",
      },
    },
  });

console.log(files.files) // returns files with metadata: {"version": "v2"}

Environment

  • OS and version: Windows (WSL)
  • Node version: 18
  • Typescript SDK version: 5

Additional context
I have tried to bypass this bug by using the curl example, but it appears to be a GET request with a -d request body, which throws errors in node.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions