Téléversement par lot pour RAG
Ceci est unAI, IT Opsworkflow d'automatisation du domainecontenant 14 nœuds.Utilise principalement des nœuds comme GoogleDrive, SplitInBatches, GoogleDriveTrigger, EmbeddingsOpenAi, VectorStorePinecone, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Indexer des documents Google Drive dans Pinecone pour RAG en utilisant les embeddings OpenAI
- •Informations d'identification Google Drive API
- •Clé API OpenAI
- •Clé API Pinecone
Nœuds utilisés (14)
{
"id": "OceYxCmiuf5W2X4y",
"meta": {
"instanceId": "REDACTED_ID",
"templateCredsSetupCompleted": true
},
"name": "Bundle RAG Upload",
"tags": [],
"nodes": [
{
"id": "REDACTED_ID",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
180,
0
],
"parameters": {
"filter": {
"folderId": {
"__rl": true,
"mode": "list",
"value": "REDACTED_ID",
"cachedResultUrl": "REDACTED_URL",
"cachedResultName": "Course Module Outline Folder for n8n"
}
},
"options": {},
"resource": "fileFolder",
"returnAll": true
},
"typeVersion": 3
},
{
"id": "REDACTED_ID",
"name": "Obtenir les documents",
"type": "n8n-nodes-base.googleDrive",
"position": [
440,
0
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {},
"operation": "download"
},
"typeVersion": 3
},
{
"id": "REDACTED_ID",
"name": "Boucler sur les éléments",
"type": "n8n-nodes-base.splitInBatches",
"position": [
660,
0
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "REDACTED_ID",
"name": "Pinecone Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
900,
20
],
"parameters": {
"mode": "insert",
"options": {
"pineconeNamespace": "Course Outlines"
},
"pineconeIndex": {
"__rl": true,
"mode": "list",
"value": "REDACTED_ID",
"cachedResultName": "REDACTED_ID"
}
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
920,
160
],
"parameters": {
"options": {}
},
"typeVersion": 1.2
},
{
"id": "REDACTED_ID",
"name": "Chargeur de données par défaut",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
1060,
240
],
"parameters": {
"options": {
"metadata": {
"metadataValues": [
{
"name": "Type",
"value": "Course Module Names"
}
]
}
},
"dataType": "binary"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Séparateur de texte récursif",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
1140,
380
],
"parameters": {
"options": {},
"chunkSize": 600,
"chunkOverlap": 60
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Google Drive Trigger",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-60,
0
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "REDACTED_ID",
"cachedResultUrl": "REDACTED_URL",
"cachedResultName": "Course Module Outline Folder for n8n"
}
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Note adhésive",
"type": "n8n-nodes-base.stickyNote",
"position": [
-140,
-120
],
"parameters": {
"color": 4,
"width": 260,
"height": 400,
"content": "Google Folder Upload Trigger"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Note adhésive1",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
-120
],
"parameters": {
"color": 6,
"width": 220,
"height": 400,
"content": "Google Search File from Folder"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Note adhésive2",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
-120
],
"parameters": {
"color": 2,
"width": 220,
"height": 400,
"content": "Get File"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Note adhésive3",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
-120
],
"parameters": {
"color": 3,
"width": 500,
"height": 680,
"content": "Upload to Pinecone Vector"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Note adhésive4",
"type": "n8n-nodes-base.stickyNote",
"position": [
620,
-120
],
"parameters": {
"color": 7,
"width": 220,
"height": 400,
"content": "Loop for multiple files"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Note adhésive5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-740,
-120
],
"parameters": {
"color": 3,
"width": 580,
"height": 1300,
"content": "REDACTED_URL"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {
"Default Data Loader": [
{
"json": {
"isArtificialRecoveredEventItem": true
}
}
],
"Recursive Character Text Splitter": [
{
"json": {
"isArtificialRecoveredEventItem": true
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "REDACTED_ID",
"connections": {
"REDACTED_ID": {
"ai_textSplitter": [
[
{
"node": "REDACTED_ID",
"type": "ai_textSplitter",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Intelligence Artificielle, Opérations IT
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Automate With Marc
@marconiAutomating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc
Partager ce workflow