Hi,
I have a question related to Supabase and using AI Agent, to use the vector store as knowledge base.
I followed the tutorial on youtube,
and got everything working.
But maybe its my lack of understanding these kinda databases or I am missing something.
Actually, as far as I understand, I create one table. In the example its “documents”.
In that table I now store all the data I want and the AI Agent (in the youtube video its the Question and Answer Chain), will use that as knowledge base.
Now - I have a website with listings. Each listing has its specific information.
So I gonna store these data as JSON in a new row and get:
ID, Content, metadata and embedding as keys.
Now - I actualy only want to use that specific knowledgebase, related to a listing.
So I thought, I can filter the rows by another ID that I called listing_id.
So each document, even when its splitted into more than one row, would have a listing_id that only contains the listing related knowledge base.
When using the normal supabase nodes to update, edit, delete, add etc, I can choose the listing_id.
But when using the “Supabase Vector Store”, I can only choose the table.
That means, it would always use all the knowledge in that table.
I could now add a key and value to the metadata, that contains the specific listing_id.
But that also means, it must run through all these metadata, to see, where I have that ID.
is there something I am missing or just dont understand, how these type of database work?
I can add “Query Name” and “Metadata” as options.
Or would I create a new table for each listing?
As far as I understand, that is not best practice, right?
Thank you very much,
Markus
- **n8n version: 1.50.1 **
- **Database: SQLite **
- **n8n EXECUTIONS_PROCESS setting: main **
- **Running n8n via:Docker **
- **Operating system: Win 11 **