n8nローカルテスト
上級
これはInternal Wiki, AI RAG分野の自動化ワークフローで、20個のノードを含みます。主にSet, GoogleDrive, Agent, ExtractFromFile, LmOllamaなどのノードを使用。 Llama3、Postgres、Qdrant、Google Driveを使ったプライベートドキュメントQAシステムの構築
前提条件
- •Google Drive API認証情報
- •Qdrantサーバー接続情報
- •PostgreSQLデータベース接続情報
使用ノード (20)
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "VqgG9dsRgPuxiNDW",
"meta": {
"instanceId": "5ddd5df8055e38d81880227d5c6dcdf1994486d01343a3c0e8e3e8bba2c674e7",
"templateCredsSetupCompleted": true
},
"name": "n8n local test",
"tags": [],
"nodes": [
{
"id": "250ff8ae-f645-4644-af93-f2148549ed86",
"name": "チャットメッセージ受信時",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-940,
580
],
"webhookId": "e0526870-3bc3-4dfc-9914-8e68363c4621",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "fbcc24b9-f983-49af-a7b9-dc78277e746c",
"name": "AIエージェント",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-660,
560
],
"parameters": {
"options": {
"systemMessage": "You are a helpful assistant you have access to a knowledge base"
}
},
"typeVersion": 2
},
{
"id": "03cfe40b-62ca-41af-ba97-80072e018e3d",
"name": "Ollama チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
-840,
400
],
"parameters": {
"model": "llama3.2:latest",
"options": {}
},
"credentials": {
"ollamaApi": {
"id": "n77wZlvZvtjVPvN8",
"name": "Ollama account"
}
},
"typeVersion": 1
},
{
"id": "5c16650c-44a9-4c5f-b8f2-d0e9e5a0f41d",
"name": "Postgresチャットメモリ",
"type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
"position": [
-720,
380
],
"parameters": {},
"credentials": {
"postgres": {
"id": "dd7SihZdZXIWFCAf",
"name": "Postgres account"
}
},
"typeVersion": 1.3
},
{
"id": "d975770d-0463-480c-aa70-33395f5f40b2",
"name": "Qdrantベクトルストア",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
660,
460
],
"parameters": {
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "midjourney",
"cachedResultName": "midjourney"
}
},
"credentials": {
"qdrantApi": {
"id": "cbWjDnr5YQkhxhly",
"name": "QdrantApi account"
}
},
"typeVersion": 1.1
},
{
"id": "a5282142-d4dc-40b9-bff9-93df5fc5905f",
"name": "Ollama モデル",
"type": "@n8n/n8n-nodes-langchain.lmOllama",
"position": [
400,
360
],
"parameters": {
"options": {}
},
"credentials": {
"ollamaApi": {
"id": "n77wZlvZvtjVPvN8",
"name": "Ollama account"
}
},
"typeVersion": 1
},
{
"id": "76a8d5b3-0c41-4f6c-b3c1-6a00ce555b23",
"name": "Embeddings Ollama",
"type": "@n8n/n8n-nodes-langchain.embeddingsOllama",
"position": [
480,
520
],
"parameters": {},
"credentials": {
"ollamaApi": {
"id": "n77wZlvZvtjVPvN8",
"name": "Ollama account"
}
},
"typeVersion": 1
},
{
"id": "3d6d64f3-b1d3-4453-9f17-6d3a55273407",
"name": "ベクトルストアでの質問応答",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"position": [
620,
320
],
"parameters": {
"description": "this tool will be used to retrieve knowledge"
},
"typeVersion": 1.1
},
{
"id": "312d4235-a534-45f2-8cba-475b12874281",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-960,
320
],
"parameters": {
"color": 7,
"width": 660,
"height": 480,
"content": "## Local Rag AI AGENT \n"
},
"typeVersion": 1
},
{
"id": "832d366c-3eb4-4845-8661-067fc12d278b",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
240
],
"parameters": {
"color": 4,
"width": 720,
"height": 460,
"content": "## Qdrant Vector store and Ollama Embeddings\n"
},
"typeVersion": 1
},
{
"id": "49d25a7c-432c-4794-ad49-c6dc57685120",
"name": "ファイル作成時",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-760,
900
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "1uf6zZN51rgAuQgid4-Oi314f6mJIQdiB",
"cachedResultUrl": "https://drive.google.com/drive/folders/1uf6zZN51rgAuQgid4-Oi314f6mJIQdiB",
"cachedResultName": "Daex"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "Libd6umJKamTZGV1",
"name": "Google Drive account"
}
},
"typeVersion": 1
},
{
"id": "39b32d2b-b4c7-44de-8f86-f519be58e4b5",
"name": "ファイル更新時",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-760,
1100
],
"parameters": {
"event": "fileUpdated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "1914m3M7kRzkd5RJqAfzRY9EBcJrKemZC",
"cachedResultUrl": "https://drive.google.com/drive/folders/1914m3M7kRzkd5RJqAfzRY9EBcJrKemZC",
"cachedResultName": "Meeting Notes"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "Libd6umJKamTZGV1",
"name": "Google Drive account"
}
},
"typeVersion": 1
},
{
"id": "b5cf9dc7-7bd9-41a3-b736-6417de3cf4b0",
"name": "ファイルID設定",
"type": "n8n-nodes-base.set",
"position": [
-540,
1000
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "10646eae-ae46-4327-a4dc-9987c2d76173",
"name": "file_id",
"type": "string",
"value": "={{ $json.id }}"
},
{
"id": "dd0aa081-79e7-4714-8a67-1e898285554c",
"name": "folder_id",
"type": "string",
"value": "={{ $json.parents[0] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "fee137e8-a785-4a07-a3f7-84f1d15438f8",
"name": "ファイルダウンロード",
"type": "n8n-nodes-base.googleDrive",
"position": [
-100,
1000
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $('Set File ID').item.json.file_id }}"
},
"options": {
"googleFileConversion": {
"conversion": {
"docsToFormat": "text/plain"
}
}
},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "Libd6umJKamTZGV1",
"name": "Google Drive account"
}
},
"executeOnce": true,
"typeVersion": 3
},
{
"id": "03adfdbf-1dc4-48c4-9263-5660f1abb505",
"name": "文書テキスト抽出",
"type": "n8n-nodes-base.extractFromFile",
"position": [
120,
1000
],
"parameters": {
"options": {},
"operation": "text"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "5490338c-f7a4-4e14-a493-b2f3d60af56f",
"name": "デフォルトデータローダー",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
460,
1222.5
],
"parameters": {
"options": {
"metadata": {
"metadataValues": [
{
"name": "file_id",
"value": "={{ $('Set File ID').item.json.file_id }}"
},
{
"name": "folder_id",
"value": "={{ $('Set File ID').item.json.folder_id }}"
}
]
}
}
},
"typeVersion": 1
},
{
"id": "1bcb0f4f-92bb-40e6-a1a9-2a2acd232202",
"name": "再帰的文字テキスト分割器",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
548,
1420
],
"parameters": {
"options": {},
"chunkSize": 100
},
"typeVersion": 1
},
{
"id": "f3f1d04c-050e-4aa6-85b1-cbb4b3eaf591",
"name": "Embeddings Ollama1",
"type": "@n8n/n8n-nodes-langchain.embeddingsOllama",
"position": [
340,
1220
],
"parameters": {
"model": "llama3.2:latest"
},
"credentials": {
"ollamaApi": {
"id": "n77wZlvZvtjVPvN8",
"name": "Ollama account"
}
},
"typeVersion": 1
},
{
"id": "066b5093-a034-43e8-a5ea-72aea5770d6c",
"name": "Qdrantベクトルストア挿入",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
340,
980
],
"parameters": {
"mode": "insert",
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "midjourney",
"cachedResultName": "midjourney"
}
},
"credentials": {
"qdrantApi": {
"id": "cbWjDnr5YQkhxhly",
"name": "QdrantApi account"
}
},
"typeVersion": 1
},
{
"id": "d85eda28-8be7-4b0d-97bf-254c39a3f690",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-806.5,
855
],
"parameters": {
"color": 5,
"width": 1568.9362829025763,
"height": 705.2695614889159,
"content": "## Workflow to Create Local Knowledgebase from Google Drive Folder"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ecc4d322-242f-4c1e-a43a-18d79efde064",
"connections": {
"b5cf9dc7-7bd9-41a3-b736-6417de3cf4b0": {
"main": [
[
{
"node": "fee137e8-a785-4a07-a3f7-84f1d15438f8",
"type": "main",
"index": 0
}
]
]
},
"49d25a7c-432c-4794-ad49-c6dc57685120": {
"main": [
[
{
"node": "b5cf9dc7-7bd9-41a3-b736-6417de3cf4b0",
"type": "main",
"index": 0
}
]
]
},
"39b32d2b-b4c7-44de-8f86-f519be58e4b5": {
"main": [
[
{
"node": "b5cf9dc7-7bd9-41a3-b736-6417de3cf4b0",
"type": "main",
"index": 0
}
]
]
},
"a5282142-d4dc-40b9-bff9-93df5fc5905f": {
"ai_languageModel": [
[
{
"node": "3d6d64f3-b1d3-4453-9f17-6d3a55273407",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"fee137e8-a785-4a07-a3f7-84f1d15438f8": {
"main": [
[
{
"node": "03adfdbf-1dc4-48c4-9263-5660f1abb505",
"type": "main",
"index": 0
}
]
]
},
"76a8d5b3-0c41-4f6c-b3c1-6a00ce555b23": {
"ai_embedding": [
[
{
"node": "d975770d-0463-480c-aa70-33395f5f40b2",
"type": "ai_embedding",
"index": 0
}
]
]
},
"03cfe40b-62ca-41af-ba97-80072e018e3d": {
"ai_languageModel": [
[
{
"node": "fbcc24b9-f983-49af-a7b9-dc78277e746c",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"f3f1d04c-050e-4aa6-85b1-cbb4b3eaf591": {
"ai_embedding": [
[
{
"node": "066b5093-a034-43e8-a5ea-72aea5770d6c",
"type": "ai_embedding",
"index": 0
}
]
]
},
"5490338c-f7a4-4e14-a493-b2f3d60af56f": {
"ai_document": [
[
{
"node": "066b5093-a034-43e8-a5ea-72aea5770d6c",
"type": "ai_document",
"index": 0
}
]
]
},
"d975770d-0463-480c-aa70-33395f5f40b2": {
"ai_vectorStore": [
[
{
"node": "3d6d64f3-b1d3-4453-9f17-6d3a55273407",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"5c16650c-44a9-4c5f-b8f2-d0e9e5a0f41d": {
"ai_memory": [
[
{
"node": "fbcc24b9-f983-49af-a7b9-dc78277e746c",
"type": "ai_memory",
"index": 0
}
]
]
},
"03adfdbf-1dc4-48c4-9263-5660f1abb505": {
"main": [
[
{
"node": "066b5093-a034-43e8-a5ea-72aea5770d6c",
"type": "main",
"index": 0
}
]
]
},
"250ff8ae-f645-4644-af93-f2148549ed86": {
"main": [
[
{
"node": "fbcc24b9-f983-49af-a7b9-dc78277e746c",
"type": "main",
"index": 0
}
]
]
},
"1bcb0f4f-92bb-40e6-a1a9-2a2acd232202": {
"ai_textSplitter": [
[
{
"node": "5490338c-f7a4-4e14-a493-b2f3d60af56f",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"3d6d64f3-b1d3-4453-9f17-6d3a55273407": {
"ai_tool": [
[
{
"node": "fbcc24b9-f983-49af-a7b9-dc78277e746c",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - 内部Wiki, AI RAG検索拡張
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
内部ドキュメントチャット
Ollama、Supabaseベクトルデータベース、Google Driveを使って内部ドキュメントと対話
Set
Switch
Webhook
+
Set
Switch
Webhook
29 ノードLakindu Siriwardana
内部Wiki
AI知識ベースアシスタントとOpenAI、Supabase、Google Driveドキュメントの同期
AI知識ベースアシスタントとOpenAI、Supabase、Google Driveドキュメントの同期
Set
Limit
Switch
+
Set
Limit
Switch
49 ノードAbdul Mir
内部Wiki
Claude、RAG、Perplexity、Driveを統合した完全な源泉知識アシスタントの構築
Claude、RAG、Perplexity、Driveを統合した全源の知識アシスタントの構築
Set
Switch
Google Drive
+
Set
Switch
Google Drive
38 ノードPaul
内部Wiki
Qdrant RAGとOllamaを使用してオンデマンドAIのKaggleコンペティションアシスタントを構築
Qdrant RAGとOllamaを使ってローカルのAI Kaggle競技用アシスタントを構築
Set
Merge
Switch
+
Set
Merge
Switch
23 ノードJHH
エンジニアリング
n8n ローカルAIエージェントRAGテンプレート
Ollama AI、スマートRAGエージェント、PGVectorを使用したローカル文書Q&Aシステム
Set
Switch
Webhook
+
Set
Switch
Webhook
41 ノードJadai kongolo
内部Wiki
Google Drive を使用した RAG チャットボット
OpenAI、Google Drive、Supabaseを使用してRAG型知識チャットボットを構築する
Set
Supabase
Google Drive
+
Set
Supabase
Google Drive
20 ノードBabish Shrestha
その他
ワークフロー情報
難易度
上級
ノード数20
カテゴリー2
ノードタイプ15
作成者
David Olusola
@dae221AI automation consultant working with ambitious businesses on their most complex operational challenges. For project inquiries, reach me at david@daexai.com
外部リンク
n8n.ioで表示 →
このワークフローを共有