Supabase Retrieve Document – Error Cannot read properties of undefined (reading 'replace')

Hi everyone :waving_hand:

I’m running into an error in my n8n workflow when trying to retrieve documents from Supabase:

Cannot read properties of undefined (reading 'replace')

This happens when I attempt to send a retrieved vector/text field to Supabase for storage or search.

The strange thing is that the data does exist in the Supabase vector table, but n8n still throws this error.

Has anyone else experienced this issue, and do you know what could be causing it? Any tips would be much appreciated :folded_hands:

1 Like

hi there @Mohamed_Necib2

here are some stuff that i would suggest for you to check

how do you retrieve this document, with like an AI Agent? what LLM do you use? have you tried changing the LLM into another LLM provider or at least change the model, and have you make sure that when the AI calls the supabase vector store, it’s calling it by providing some value/parameter.argument to search or not

Yes with an AI agent, it is crazy because there is data available but always have this errors message. I’m going to try to change the LLM. Okay regarding calling it by providing some value parameter, I feel like it is useless because he asks me on which document I wanna retrieve from the supabase isn’t it ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.