0% found this document useful (0 votes)
14 views5 pages

n8n Workflow for Supabase Vector Search

Uploaded by

thegioitinhoc118
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

n8n Workflow for Supabase Vector Search

Uploaded by

thegioitinhoc118
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

{

"name": "Subabase",
"nodes": [
{
"parameters": {},
"type": "[Link]",
"typeVersion": 1,
"position": [
0,
0
],
"id": "1cc281b5-9af8-4758-8532-7934c5fdbd4d",
"name": "When clicking ‘Execute workflow’"
},
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value":
"[Link]
A/edit?pli=1&gid=0#gid=0",
"mode": "url"
},
"options": {
"googleFileConversion": {
"conversion": {
"docsToFormat": "text/plain"
}
}
}
},
"type": "[Link]",
"typeVersion": 3,
"position": [
416,
0
],
"id": "8a22279b-9730-48d2-a848-453844ac8bea",
"name": "Download file",
"credentials": {
"googleDriveOAuth2Api": {
"id": "oorTxuDM6gIf3Ha5",
"name": "Google Drive account 3"
}
}
},
{
"parameters": {
"jsonMode": "expressionData",
"jsonData": "={{ $[Link] }}",
"textSplittingMode": "custom",
"options": {}
},
"type": "@n8n/[Link]",
"typeVersion": 1.1,
"position": [
1184,
176
],
"id": "ab602e5d-59b4-460a-a586-f74c81a23a5f",
"name": "Default Data Loader"
},
{
"parameters": {
"operation": "text",
"options": {}
},
"type": "[Link]",
"typeVersion": 1,
"position": [
624,
0
],
"id": "06ca3145-b595-4eba-a8e2-b79442f38bbe",
"name": "Extract from File"
},
{
"parameters": {
"chunkSize": 2000,
"chunkOverlap": 200,
"options": {
"splitCode": "markdown"
}
},
"type": "@n8n/n8n-nodes-
[Link]",
"typeVersion": 1,
"position": [
1280,
416
],
"id": "46c10f94-555c-439b-9ae3-027762eeb881",
"name": "Recursive Character Text Splitter"
},
{
"parameters": {},
"type": "@n8n/[Link]",
"typeVersion": 1,
"position": [
1072,
384
],
"id": "2b7cfd7f-7d15-4920-963d-1af94f53a29c",
"name": "Embeddings Google Gemini",
"credentials": {
"googlePalmApi": {
"id": "Yz7Q9oi1FQAR76Mv",
"name": "Google Gemini(PaLM) Api account 3"
}
}
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "",
"rightValue": "",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "c300b53b-ff07-4082-9ac9-50c66a2c9826"
}
],
"combinator": "and"
}
}
]
},
"options": {}
},
"type": "[Link]",
"typeVersion": 3.2,
"position": [
208,
0
],
"id": "901c8c3a-2204-4269-848f-ee905037c2ee",
"name": "Switch"
},
{
"parameters": {
"mode": "insert",
"tableName": {
"__rl": true,
"value": "documents",
"mode": "list",
"cachedResultName": "documents"
},
"options": {
"queryName": "match_documents"
}
},
"type": "@n8n/[Link]",
"typeVersion": 1.3,
"position": [
896,
16
],
"id": "ab91592a-28f4-44e4-b576-e3003c2bc563",
"name": "Supabase Vector Store1",
"credentials": {
"supabaseApi": {
"id": "w6aabL6DqlZ0wU5K",
"name": "Supabase account"
}
}
}
],
"pinData": {
"When clicking ‘Execute workflow’": [
{
"json": {}
}
]
},
"connections": {
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Extract from File",
"type": "main",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Supabase Vector Store1",
"type": "ai_document",
"index": 0
}
]
]
},
"Extract from File": {
"main": [
[
{
"node": "Supabase Vector Store1",
"type": "main",
"index": 0
}
]
]
},
"Recursive Character Text Splitter": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Embeddings Google Gemini": {
"ai_embedding": [
[
{
"node": "Supabase Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "1c6aa2fe-7d3c-4b36-afb5-94c54cc29218",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId":
"c8c903f82579823cd6caf4b92ff05ef6312029c7daca944ff18595a9ae1c43c5"
},
"id": "NJ89neETEsKMWy6f",
"tags": []
}

You might also like