Pinecone error when using namespace and metadata filter

Hey everyone,

I’m using an AI Tools Agent to query a Pinecone Vector Store and getting the following error message when using multiple filters:

cannot provide both filter and this.filter

Here’s what’s happening:

  • If i only specify a namespace for the Pinecone Vector Store, it works fine.
  • If i only specify a metadata filter to the Pinecone Vector Store, it also works fine.
  • However when I combine a namespace and a metadata filter, I get the error (cannot provide both filter and this.filter).

Same thing happens if I use two metadata filters without a namespace—so it seems like the issue is with multiple filters in general, not a specific combo.

EDIT: I have continued testing and this issue seems to only occur when i uses the Pinecone node: “Retrieve documents for AI agent as Tool”. Which is the type of Pinecone node that works with an AI Agent node (as shown in my example below)

However, if i use the Pinecone node “Retrieve documents for a Chain/Tool as a Vector Store” i am able to use multiple filters, – but this type of node cant be used with an AI Agent.

Anyone know what might be causing this?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I have the same problem.

n8n version: 1.78.0
Database : Pincone Vector Store
n8n EXECUTIONS_PROCESS setting: main
Running n8n via : DOCKER
Operating system: Ubuntu

I am having this issue with just providing one metadata filter. only happens if i use the Retrieve documents for a Chain/Tool as a Vector Store node…

Same here!

any solutions?

Same for me :frowning:

I fixed it by creating a new node, like this. I made it reusable, but you can do as you please.

Same issue here - on version 1.83.2

And it occurs for me when i try to use the $fromAI within the namespace or metadata filter