Supabase Vector Store queries the wrong table despite correct configuration

PROBLEM: Supabase Vector Store queries the wrong despite correct configuration. The Vector store connects correctly to my Supabase project, and I can chose from the projects 3x tables. I chose the table ‘hkex_ipo_listings’ for the vector store to retrieve its documents from, BUT instead teh vector store retireves the data from the wrong ‘documents’ table.

PARTIAL SOLUTION: In this community I found two posts that addressed the same issue but the posts are closed, so i cant ask follow-ups.

The posts narrowed down the problem to the Supabase SQL function match_documents which I setup using the default langchain template in Supabase. Meaning, the n8n Vector store matches the request to the ‘documents’ table instead of the ‘hkex_ipo_listings’ table, despite ‘hkex_ipo_listings’ table, being selected in the interface. The suggestion was to include a SQL fucntion ‘match_hkex_ipo_listings’, which i did. However, the n8n SUpabase vector store still queries the ‘documents’ table & now i have two tables in the selector ‘hkex_ipo_listings’ and ‘rpc/hkex_ipo_listings’.

What am I doing wrong? If i am having a basic flawd understanding, feel free to just send me to article or youtube video about Supabase basics. I watched a few already (I am a noob), but apparantely that wasnt enough. Thanks a lot for your help in advance!!

Check that you are actually using the correct match function under query name in options

check whether this function looks in the correct table.

4 Likes

If your previous question was answered, please mark it as solved and make a new topic for the next unrelated question and I will try to take a look today.

Cheers

1 Like

Thank you. Just adding this option worked for me

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