RAG 문서 업데이트 기능 활성화
고급
이것은AI분야의자동화 워크플로우로, 29개의 노드를 포함합니다.주로 Set, Wait, GoogleDrive, HttpRequest, ManualTrigger 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Google Drive, Qdrant 및 Gemini Chat을 사용하여 RAG 시스템을 구축 및 업데이트
사전 요구사항
- •Google Drive API 인증 정보
- •대상 API의 인증 정보가 필요할 수 있음
- •OpenAI API Key
- •Qdrant 서버 연결 정보
- •Google Gemini API Key
사용된 노드 (29)
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "cN4nA1LigjoreUYv",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "Enables updates to documents in RAG",
"tags": [
{
"id": "oFVn9SpkmyjWZwco",
"name": "Qdrant",
"createdAt": "2024-12-04T16:52:58.409Z",
"updatedAt": "2024-12-04T16:52:58.409Z"
}
],
"nodes": [
{
"id": "23afa2cc-7085-474f-aa9e-b110ef17208c",
"name": "워크플로우 '테스트' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-400,
220
],
"parameters": {},
"typeVersion": 1
},
{
"id": "71115f33-f461-4942-9df1-e554e6432054",
"name": "Embeddings OpenAI1",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
940,
480
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4zwP0MSr8zkNvvV9",
"name": "OpenAi account"
}
},
"typeVersion": 1.1
},
{
"id": "81d855d2-a883-4e74-ae2a-1a4e722af4d7",
"name": "Default Data Loader1",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
1080,
480
],
"parameters": {
"options": {
"metadata": {
"metadataValues": [
{
"name": "file_id",
"value": "={{ $('Download files').item.json.id }}"
},
{
"name": "file_name",
"value": "={{ $('Download files').item.json.name }}"
}
]
}
},
"dataType": "binary",
"binaryMode": "specificField"
},
"typeVersion": 1
},
{
"id": "4e5539a5-0f3a-4de9-ba69-0eb7d9c00804",
"name": "Qdrant Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
1000,
240
],
"parameters": {
"mode": "insert",
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "negozio-emporio-verde",
"cachedResultName": "negozio-emporio-verde"
}
},
"credentials": {
"qdrantApi": {
"id": "iyQ6MQiVaF3VMBmt",
"name": "QdrantApi account (Hetzner)"
}
},
"typeVersion": 1
},
{
"id": "8f944f0e-51a0-470e-9735-1ed539522acb",
"name": "컬렉션 생성",
"type": "n8n-nodes-base.httpRequest",
"position": [
-140,
-200
],
"parameters": {
"url": "http://QDRANTURL/collections/COLLECTION",
"method": "PUT",
"options": {},
"jsonBody": "{\n \"vectors\": {\n \"size\": 1536,\n \"distance\": \"Cosine\" \n },\n \"shard_number\": 1, \n \"replication_factor\": 1, \n \"write_consistency_factor\": 1 \n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "qhny6r5ql9wwotpn",
"name": "Qdrant API (Hetzner)"
}
},
"typeVersion": 4.2
},
{
"id": "25c035aa-7a07-47cf-8878-44ac2eab0c3d",
"name": "Recursive Character Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
1060,
680
],
"parameters": {
"options": {},
"chunkSize": 500,
"chunkOverlap": 50
},
"typeVersion": 1
},
{
"id": "2ade51da-1711-4f71-8bd9-ebd3b6494b0b",
"name": "항목 순환 처리",
"type": "n8n-nodes-base.splitInBatches",
"position": [
420,
220
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "74a224b0-8755-41ef-bb55-22e83b7d762d",
"name": "대기",
"type": "n8n-nodes-base.wait",
"position": [
1380,
240
],
"webhookId": "3d477cc3-8182-43e9-ae61-23e8ce308887",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "1c0d5b8c-e53e-47d3-aaac-ddccae80f280",
"name": "Embeddings OpenAI2",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
620,
1220
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4zwP0MSr8zkNvvV9",
"name": "OpenAi account"
}
},
"typeVersion": 1.1
},
{
"id": "f838f548-52dd-4aaf-aa97-9a8029018a1a",
"name": "Default Data Loader",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
820,
1260
],
"parameters": {
"options": {
"metadata": {
"metadataValues": [
{
"name": "file_id",
"value": "={{ $('Download file').item.json.file_id }}"
},
{
"name": "file_name",
"value": "={{ $binary.data.fileName}}"
}
]
}
},
"dataType": "binary",
"binaryMode": "specificField"
},
"typeVersion": 1
},
{
"id": "07bb3ae1-145f-4784-8409-d3bc73d5522c",
"name": "Recursive Character Text Splitter1",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
860,
1460
],
"parameters": {
"options": {},
"chunkSize": 500,
"chunkOverlap": 50
},
"typeVersion": 1
},
{
"id": "dfa7b994-13b7-490f-82b7-5ae4ea1e2e7f",
"name": "단일 파일 삭제",
"type": "n8n-nodes-base.httpRequest",
"position": [
360,
720
],
"parameters": {
"url": "http://QDRANTURL/collections/COLLECTION/points/delete",
"method": "POST",
"options": {},
"jsonBody": "={\n \"filter\": {\n \"must\": [\n {\n \"key\": \"metadata.file_id\",\n \"match\": { \"value\": \"{{$json.file_id}}\" }\n }\n ]\n }\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "qhny6r5ql9wwotpn",
"name": "Qdrant API (Hetzner)"
}
},
"typeVersion": 4.2
},
{
"id": "44bf5e40-3947-4288-a7ba-7797ea6ad266",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
-280
],
"parameters": {
"color": 6,
"width": 880,
"height": 220,
"content": "# STEP 1\n\n## Create Qdrant Collection\nChange:\n- QDRANTURL\n- COLLECTION"
},
"typeVersion": 1
},
{
"id": "56e6534e-e191-4756-8bcf-d9ff8fc88b5f",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
700
],
"parameters": {
"height": 360,
"content": "# STEP 3\n\n## FILE ID\nSet Google Drive File ID to update\n"
},
"typeVersion": 1
},
{
"id": "f7098791-889a-4e9a-bd8f-f3b52dfc8839",
"name": "컬렉션 초기화",
"type": "n8n-nodes-base.httpRequest",
"position": [
-140,
220
],
"parameters": {
"url": "http://QDRANTURL/collections/COLLECTION/points/delete",
"method": "POST",
"options": {},
"jsonBody": "{\n \"filter\": {}\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "qhny6r5ql9wwotpn",
"name": "Qdrant API (Hetzner)"
}
},
"typeVersion": 4.2
},
{
"id": "d75a193e-e0cd-469a-8222-1ff183e2aa83",
"name": "파일 목록 가져오기",
"type": "n8n-nodes-base.googleDrive",
"position": [
120,
220
],
"parameters": {
"filter": {
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive",
"cachedResultUrl": "https://drive.google.com/drive/my-drive",
"cachedResultName": "My Drive"
},
"folderId": {
"__rl": true,
"mode": "list",
"value": "1RO5ByPhq2yvYLmbapTNC_kKdU5lZd4W5",
"cachedResultUrl": "https://drive.google.com/drive/folders/1RO5ByPhq2yvYLmbapTNC_kKdU5lZd4W5",
"cachedResultName": "Test Negozio"
}
},
"options": {},
"resource": "fileFolder"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "HEy5EuZkgPZVEa9w",
"name": "Google Drive account (n3w.it)"
}
},
"typeVersion": 3
},
{
"id": "4e5d5bd2-2aae-4d3b-978e-3ed29b641bb3",
"name": "파일 다운로드",
"type": "n8n-nodes-base.googleDrive",
"position": [
700,
240
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {
"googleFileConversion": {
"conversion": {
"docsToFormat": "text/plain"
}
}
},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "HEy5EuZkgPZVEa9w",
"name": "Google Drive account (n3w.it)"
}
},
"typeVersion": 3
},
{
"id": "074333a4-fbcc-42ce-aa05-212d545fdcb1",
"name": "파일 다운로드",
"type": "n8n-nodes-base.googleDrive",
"position": [
360,
980
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.file_id }}"
},
"options": {
"googleFileConversion": {
"conversion": {
"docsToFormat": "text/plain"
}
}
},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "HEy5EuZkgPZVEa9w",
"name": "Google Drive account (n3w.it)"
}
},
"typeVersion": 3
},
{
"id": "e4ee0aa9-e140-44b9-b581-6d98cb2857a9",
"name": "채팅 메시지 수신 시",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-560,
1600
],
"webhookId": "97d60090-1717-4195-bf27-2e3c3105b7f8",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "db644cc4-da46-4e9e-a092-f91762ca1c6b",
"name": "질의응답 체인",
"type": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
"position": [
-240,
1600
],
"parameters": {
"options": {}
},
"typeVersion": 1.5
},
{
"id": "9e7ebe5e-a854-44dc-8cb3-ec1663121b93",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-300,
1800
],
"parameters": {
"options": {},
"modelName": "models/gemini-1.5-flash"
},
"credentials": {
"googlePalmApi": {
"id": "0p34rXqIqy8WuoPg",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "d7e29bec-2b8c-400c-b6d7-a82d7a2865a7",
"name": "Vector Store Retriever",
"type": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
"position": [
-80,
1820
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e490e747-5395-4460-bdea-0781145f30b1",
"name": "Qdrant Vector Store1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
-60,
2020
],
"parameters": {
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "ocr_mistral_test",
"cachedResultName": "ocr_mistral_test"
}
},
"credentials": {
"qdrantApi": {
"id": "iyQ6MQiVaF3VMBmt",
"name": "QdrantApi account (Hetzner)"
}
},
"typeVersion": 1.1
},
{
"id": "65261873-4ca5-4e23-bc65-220f971eb5b4",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
1600
],
"parameters": {
"width": 500,
"height": 120,
"content": "## STEP 4\nTest the RAG"
},
"typeVersion": 1
},
{
"id": "ffbaabd0-7fd7-41db-bb71-4cccadf3e9c8",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
-180,
2160
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4zwP0MSr8zkNvvV9",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "23053690-c978-4b05-be26-e94f88c9d92f",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
100
],
"parameters": {
"color": 4,
"width": 620,
"height": 520,
"content": "# STEP 2\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Documents vectorization with Qdrant and Google Drive\nChange:\n- QDRANTURL\n- COLLECTION"
},
"typeVersion": 1
},
{
"id": "153a5098-56d1-4b7c-bb12-e6054db927a0",
"name": "필드 편집3",
"type": "n8n-nodes-base.set",
"position": [
-100,
880
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "b413a226-0641-4ed8-9951-d17b6a6a9a4b",
"name": "file_id",
"type": "string",
"value": "DRIVEFILE_ID"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "796f3ad4-e041-4af6-b3a5-72b3c3730c49",
"name": "단일 파일 업데이트",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
700,
980
],
"parameters": {
"mode": "insert",
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "negozio-emporio-verde",
"cachedResultName": "negozio-emporio-verde"
}
},
"credentials": {
"qdrantApi": {
"id": "iyQ6MQiVaF3VMBmt",
"name": "QdrantApi account (Hetzner)"
}
},
"typeVersion": 1
},
{
"id": "058c4929-ff59-41ca-8131-178e9038b354",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
-580
],
"parameters": {
"color": 3,
"width": 840,
"height": 220,
"content": "# Enables full or incremental updates to documents in RAG system using Qdrant \nThis workflow automates the creation and management of a Retrieval-Augmented Generation (RAG) system using Qdrant as a vector store and Google Drive as the document source. It **enables full or incremental updates to documents** in the Qdrant vector database and integrates with a chatbot using Google Gemini for question answering."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "630e34d7-6558-49c3-b861-520b33fd0f91",
"connections": {
"74a224b0-8755-41ef-bb55-22e83b7d762d": {
"main": [
[
{
"node": "2ade51da-1711-4f71-8bd9-ebd3b6494b0b",
"type": "main",
"index": 0
}
]
]
},
"d75a193e-e0cd-469a-8222-1ff183e2aa83": {
"main": [
[
{
"node": "2ade51da-1711-4f71-8bd9-ebd3b6494b0b",
"type": "main",
"index": 0
}
]
]
},
"153a5098-56d1-4b7c-bb12-e6054db927a0": {
"main": [
[
{
"node": "074333a4-fbcc-42ce-aa05-212d545fdcb1",
"type": "main",
"index": 0
},
{
"node": "dfa7b994-13b7-490f-82b7-5ae4ea1e2e7f",
"type": "main",
"index": 0
}
]
]
},
"074333a4-fbcc-42ce-aa05-212d545fdcb1": {
"main": [
[
{
"node": "4e5539a5-0f3a-4de9-ba69-0eb7d9c00804",
"type": "main",
"index": 0
}
]
]
},
"2ade51da-1711-4f71-8bd9-ebd3b6494b0b": {
"main": [
[],
[
{
"node": "074333a4-fbcc-42ce-aa05-212d545fdcb1",
"type": "main",
"index": 0
}
]
]
},
"f7098791-889a-4e9a-bd8f-f3b52dfc8839": {
"main": [
[
{
"node": "d75a193e-e0cd-469a-8222-1ff183e2aa83",
"type": "main",
"index": 0
}
]
]
},
"ffbaabd0-7fd7-41db-bb71-4cccadf3e9c8": {
"ai_embedding": [
[
{
"node": "e490e747-5395-4460-bdea-0781145f30b1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"71115f33-f461-4942-9df1-e554e6432054": {
"ai_embedding": [
[
{
"node": "4e5539a5-0f3a-4de9-ba69-0eb7d9c00804",
"type": "ai_embedding",
"index": 0
}
]
]
},
"1c0d5b8c-e53e-47d3-aaac-ddccae80f280": {
"ai_embedding": [
[
{
"node": "796f3ad4-e041-4af6-b3a5-72b3c3730c49",
"type": "ai_embedding",
"index": 0
}
]
]
},
"f838f548-52dd-4aaf-aa97-9a8029018a1a": {
"ai_document": [
[
{
"node": "796f3ad4-e041-4af6-b3a5-72b3c3730c49",
"type": "ai_document",
"index": 0
}
]
]
},
"4e5539a5-0f3a-4de9-ba69-0eb7d9c00804": {
"main": [
[
{
"node": "74a224b0-8755-41ef-bb55-22e83b7d762d",
"type": "main",
"index": 0
}
]
]
},
"81d855d2-a883-4e74-ae2a-1a4e722af4d7": {
"ai_document": [
[
{
"node": "4e5539a5-0f3a-4de9-ba69-0eb7d9c00804",
"type": "ai_document",
"index": 0
}
]
]
},
"e490e747-5395-4460-bdea-0781145f30b1": {
"ai_vectorStore": [
[
{
"node": "d7e29bec-2b8c-400c-b6d7-a82d7a2865a7",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"d7e29bec-2b8c-400c-b6d7-a82d7a2865a7": {
"ai_retriever": [
[
{
"node": "db644cc4-da46-4e9e-a092-f91762ca1c6b",
"type": "ai_retriever",
"index": 0
}
]
]
},
"9e7ebe5e-a854-44dc-8cb3-ec1663121b93": {
"ai_languageModel": [
[
{
"node": "db644cc4-da46-4e9e-a092-f91762ca1c6b",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"e4ee0aa9-e140-44b9-b581-6d98cb2857a9": {
"main": [
[
{
"node": "db644cc4-da46-4e9e-a092-f91762ca1c6b",
"type": "main",
"index": 0
}
]
]
},
"25c035aa-7a07-47cf-8878-44ac2eab0c3d": {
"ai_textSplitter": [
[
{
"node": "81d855d2-a883-4e74-ae2a-1a4e722af4d7",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"23afa2cc-7085-474f-aa9e-b110ef17208c": {
"main": [
[
{
"node": "f7098791-889a-4e9a-bd8f-f3b52dfc8839",
"type": "main",
"index": 0
}
]
]
},
"07bb3ae1-145f-4784-8409-d3bc73d5522c": {
"ai_textSplitter": [
[
{
"node": "f838f548-52dd-4aaf-aa97-9a8029018a1a",
"type": "ai_textSplitter",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Qdrant를 사용하여 완전한 RAG 시스템, 자동 출처 참조를 포함합니다.
Qdrant, Gemini, OpenAI를 사용하여 자동 참조를 포함한 RAG 시스템을 구축합니다.
Set
Code
Wait
+
Set
Code
Wait
29 노드Davide
인공지능
Mistral OCR 기반의 완전한 RAG, PDF에서 시작합니다.
Mistral OCR, Qdrant, Gemini AI를 사용하여 PDF 문서 RAG 시스템을 구축합니다.
Set
Code
Wait
+
Set
Code
Wait
34 노드Davide
인공지능
Qdrant를 사용하여 완전한 RAG 시스템, 자동 문서 업데이트 기능을 포함합니다.
OpenAI, Google Gemini, Qdrant, Google Drive를 사용하여 자동 업데이트 RAG 시스템을 구축합니다.
Set
Wait
Google Drive
+
Set
Wait
Google Drive
32 노드Davide
AI RAG
시험 문제 생성
Google 문서와 Gemini AI 기반 시험 문제 및 답변 자동 생성
Code
Google Docs
Http Request
+
Code
Google Docs
Http Request
37 노드Davide
기타
AI 기반 Telegram 어시스턴트 최종 시작 가이드(PDF, Brave 검색, Google 패키지)
Gemini, RAG PDF 검색, Google Suite를 사용하여 다능한 Telegram 로봇을 구축합니다.
Set
Code
Wait
+
Set
Code
Wait
79 노드Issam AGGOUR
인공지능
AI 스마트 어시스턴트: Supabase 스토리지 및 Google Drive 파일과 대화
AI스마트어시스턴트:与Supabase存储및Google Drive文件对话
If
Set
Wait
+
If
Set
Wait
62 노드Mark Shcherbakov
엔지니어링
워크플로우 정보
난이도
고급
노드 수29
카테고리1
노드 유형15
저자
Davide
@n3witaliaFull-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유