Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created December 5, 2025 22:09
Show Gist options
  • Select an option

  • Save unlocomqx/a315b29f08bdcf0beafc1fd66f8ae5c3 to your computer and use it in GitHub Desktop.

Select an option

Save unlocomqx/a315b29f08bdcf0beafc1fd66f8ae5c3 to your computer and use it in GitHub Desktop.
{
"nodes": [
{
"parameters": {
"jsonMode": "expressionData",
"jsonData": "={{ $json.data }}",
"textSplittingMode": "custom",
"options": {}
},
"id": "38837bb1-6a07-4a22-b400-072aac4af3ac",
"cid": "Ikx1Y2FzIFBleXJpbiI",
"name": "Default Data Loader",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"creator": "Lucas Peyrin",
"position": [
304,
336
],
"typeVersion": 1.1,
"notes": "© 2025 Lucas Peyrin"
},
{
"parameters": {
"chunkSize": 1500,
"chunkOverlap": 200,
"options": {
"splitCode": "markdown"
}
},
"id": "53330ebe-cf02-4cb1-b5d3-ed02a780cbd7",
"cid": "Ikx1Y2FzIFBleXJpbiI",
"name": "Recursive Character Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"creator": "Lucas Peyrin",
"position": [
384,
544
],
"typeVersion": 1,
"notes": "© 2025 Lucas Peyrin"
},
{
"parameters": {},
"id": "bb10ea09-5067-410d-b919-f8a6d4f7dd62",
"cid": "Ikx1Y2FzIFBleXJpbiI",
"name": "Gemini Chunk Embedding",
"type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
"creator": "Lucas Peyrin",
"position": [
176,
336
],
"typeVersion": 1,
"credentials": {
"googlePalmApi": {
"id": "1hVMDAeIReNMOdNs",
"name": "Google Gemini(PaLM) Api account"
}
},
"notes": "© 2025 Lucas Peyrin"
},
{
"parameters": {
"mode": "insert",
"qdrantCollection": {
"__rl": true,
"value": "dp-support",
"mode": "list",
"cachedResultName": "dp-support"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"typeVersion": 1.3,
"position": [
208,
112
],
"id": "88b84f56-d929-4723-a2f6-0cab14e4374e",
"name": "Qdrant Vector Store",
"credentials": {
"qdrantApi": {
"id": "RH3RJkdv3kquotSh",
"name": "QdrantApi account"
}
}
},
{
"parameters": {
"resource": "fileFolder",
"searchMethod": "query",
"queryString": "name contains 'thread-*.md'",
"returnAll": true,
"filter": {
"folderId": {
"__rl": true,
"value": "1OeK7pont2_2PTgjYudSjj68UNAsgLdPt",
"mode": "list",
"cachedResultName": "scraper",
"cachedResultUrl": "https://drive.google.com/drive/folders/1OeK7pont2_2PTgjYudSjj68UNAsgLdPt"
}
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
-944,
112
],
"id": "08abf907-4207-4b6b-a7e8-331c66b71e6c",
"name": "Search files and folders",
"credentials": {
"googleDriveOAuth2Api": {
"id": "j4kfIJC4HMvVFtA8",
"name": "Google Drive account"
}
}
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
-720,
112
],
"id": "6b3da563-463e-4165-8480-ba37ff964cbd",
"name": "Loop Over Items"
},
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
-272,
32
],
"id": "ead824d2-f6e6-4ab2-b530-c5ea830e23a1",
"name": "Download file",
"credentials": {
"googleDriveOAuth2Api": {
"id": "j4kfIJC4HMvVFtA8",
"name": "Google Drive account"
}
}
},
{
"parameters": {
"operation": "text",
"options": {}
},
"type": "n8n-nodes-base.extractFromFile",
"typeVersion": 1,
"position": [
-48,
32
],
"id": "2b63264d-9acd-43f0-bc6c-25fe8364ba18",
"name": "Read file",
"alwaysOutputData": false
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-1168,
112
],
"id": "b2e045bf-eba9-4a55-ae3c-0b8f878e94b5",
"name": "Start"
},
{
"parameters": {
"operation": "removeItemsSeenInPreviousExecutions",
"dedupeValue": "={{ $json.name }}",
"options": {}
},
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 2,
"position": [
-496,
32
],
"id": "70e7797d-91d3-401f-b459-c659bbb223ff",
"name": "Remove Duplicates"
}
],
"connections": {
"Default Data Loader": {
"ai_document": [
[
{
"node": "Qdrant Vector Store",
"type": "ai_document",
"index": 0
}
]
]
},
"Recursive Character Text Splitter": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Gemini Chunk Embedding": {
"ai_embedding": [
[
{
"node": "Qdrant Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Qdrant Vector Store": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Search files and folders": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Remove Duplicates",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Read file",
"type": "main",
"index": 0
}
]
]
},
"Read file": {
"main": [
[
{
"node": "Qdrant Vector Store",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[
{
"node": "Search files and folders",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "97dfcfcc095a4aaee6c8b1a73f3b5266d6da286ef0f01947d5ed3bde8680014a"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment