基礎RAGチャット
中級
これはSupport, Building Blocks, AI分野の自動化ワークフローで、14個のノードを含みます。主にManualTrigger, ReadWriteFile, LmChatGroq, ChatTrigger, ChainRetrievalQaなどのノードを使用、AI技術を活用したスマート自動化を実現。 基本のな RAG チャット
前提条件
- •AIサービスAPIキー(OpenAI、Anthropicなど)
使用ノード (14)
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"nodes": [
{
"id": "3bc2f88b-c14e-4ee5-84ce-dc16a54aa12b",
"name": "Recursive Character Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
-580,
320
],
"parameters": {
"options": {
"splitCode": "markdown"
},
"chunkOverlap": 50
},
"typeVersion": 1
},
{
"id": "6bd91468-17db-4918-a232-87fb295a30c2",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1240,
-140
],
"parameters": {
"color": 7,
"width": 978.0454109366399,
"height": 806.6556079800943,
"content": "### Load data into database\nFetch file from Google Drive, split it into chunks and insert into Pinecone index"
},
"typeVersion": 1
},
{
"id": "3af4e8e9-0503-470e-b449-4551191fb405",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-160
],
"parameters": {
"color": 7,
"width": 795.4336844920119,
"height": 849.4411596574598,
"content": "### Chat with database\nEmbed the incoming chat message and use it retrieve relevant chunks from the vector store. These are passed to the model to formulate an answer "
},
"typeVersion": 1
},
{
"id": "6f94ec58-4fca-40ee-a1a0-012998093589",
"name": "Default Data Loader",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
-580,
200
],
"parameters": {
"options": {},
"dataType": "binary"
},
"typeVersion": 1
},
{
"id": "3e145342-458d-4222-a707-9fee78e91c4d",
"name": "Question and Answer Chain",
"type": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
"position": [
60,
-20
],
"parameters": {
"options": {}
},
"typeVersion": 1.2
},
{
"id": "7f2b288a-a002-4cd3-93c0-b2a0e491699c",
"name": "Vector Store Retriever",
"type": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
"position": [
240,
200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ca930ba7-b45d-47d8-9f36-9db3a25ee77a",
"name": "「Test Workflow」ボタンクリック時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1420,
-20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "90782052-5df2-4f1e-84fc-c47095a81852",
"name": "下部「Chat」ボタンクリック時",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-140,
-20
],
"webhookId": "066b342b-f2b6-401e-b560-12f5d23b6103",
"parameters": {},
"typeVersion": 1
},
{
"id": "712dc9d3-af2d-4436-9315-78f66f748b91",
"name": "Read/Write Files from Disk",
"type": "n8n-nodes-base.readWriteFile",
"position": [
-1200,
-20
],
"parameters": {
"options": {},
"fileSelector": "/tmp/external_data/news.txt"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "1cd768c1-fcc0-480a-8b33-fbe714788b32",
"name": "In-Memory Vector Store1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"position": [
240,
380
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2393e667-7e4f-4392-9a7e-b2b4d74d46e8",
"name": "In-Memory Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"position": [
-980,
-20
],
"parameters": {
"mode": "insert",
"clearStore": true
},
"typeVersion": 1
},
{
"id": "e53f51f3-04f3-46ef-aebd-e0b32b415101",
"name": "Embeddings Cohere",
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
"position": [
-940,
300
],
"parameters": {
"modelName": "embed-multilingual-v3.0"
},
"credentials": {
"cohereApi": {
"id": "rXh87ikYuJfDKuCk",
"name": "CohereApi account"
}
},
"typeVersion": 1
},
{
"id": "cf1333b6-b69b-4ff1-bfc3-d3d579585efb",
"name": "Groq Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGroq",
"notes": "使用繁體中文",
"position": [
100,
220
],
"parameters": {
"model": "llama-3.3-70b-versatile",
"options": {}
},
"credentials": {
"groqApi": {
"id": "dznjL979E8j0L4Zc",
"name": "Groq account"
}
},
"typeVersion": 1
},
{
"id": "e49cfb2e-5eca-4b43-973d-4bf7285b5d94",
"name": "Embeddings Cohere1",
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
"position": [
340,
560
],
"parameters": {
"modelName": "embed-multilingual-v3.0"
},
"credentials": {
"cohereApi": {
"id": "rXh87ikYuJfDKuCk",
"name": "CohereApi account"
}
},
"typeVersion": 1
}
],
"connections": {
"cf1333b6-b69b-4ff1-bfc3-d3d579585efb": {
"ai_languageModel": [
[
{
"node": "3e145342-458d-4222-a707-9fee78e91c4d",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"e53f51f3-04f3-46ef-aebd-e0b32b415101": {
"ai_embedding": [
[
{
"node": "2393e667-7e4f-4392-9a7e-b2b4d74d46e8",
"type": "ai_embedding",
"index": 0
}
]
]
},
"e49cfb2e-5eca-4b43-973d-4bf7285b5d94": {
"ai_embedding": [
[
{
"node": "1cd768c1-fcc0-480a-8b33-fbe714788b32",
"type": "ai_embedding",
"index": 0
}
]
]
},
"6f94ec58-4fca-40ee-a1a0-012998093589": {
"ai_document": [
[
{
"node": "2393e667-7e4f-4392-9a7e-b2b4d74d46e8",
"type": "ai_document",
"index": 0
}
]
]
},
"7f2b288a-a002-4cd3-93c0-b2a0e491699c": {
"ai_retriever": [
[
{
"node": "3e145342-458d-4222-a707-9fee78e91c4d",
"type": "ai_retriever",
"index": 0
}
]
]
},
"1cd768c1-fcc0-480a-8b33-fbe714788b32": {
"ai_vectorStore": [
[
{
"node": "7f2b288a-a002-4cd3-93c0-b2a0e491699c",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"712dc9d3-af2d-4436-9315-78f66f748b91": {
"main": [
[
{
"node": "2393e667-7e4f-4392-9a7e-b2b4d74d46e8",
"type": "main",
"index": 0
}
]
]
},
"3bc2f88b-c14e-4ee5-84ce-dc16a54aa12b": {
"ai_textSplitter": [
[
{
"node": "6f94ec58-4fca-40ee-a1a0-012998093589",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"90782052-5df2-4f1e-84fc-c47095a81852": {
"main": [
[
{
"node": "3e145342-458d-4222-a707-9fee78e91c4d",
"type": "main",
"index": 0
}
]
]
},
"ca930ba7-b45d-47d8-9f36-9db3a25ee77a": {
"main": [
[
{
"node": "712dc9d3-af2d-4436-9315-78f66f748b91",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - サポート, ビルディングブロック, 人工知能
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
高度なAIディスプレイ(AI開発者第14回集での発表)
高度なAIデモ(AI開発者第14回聚会で展示)
If
Code
Gmail
+
If
Code
Gmail
39 ノードMax Tkacz
ビルディングブロック
Qdrantを使った完全なRAGシステム、自動出典引用付き
Qdrant、Gemini、OpenAIを使った自動引用機能付きRAGシステムの構築
Set
Code
Wait
+
Set
Code
Wait
29 ノードDavide
人工知能
RAG内でドキュメントのアップデート機能を有効化
Google Drive、Qdrant、Gemini Chatを使ってRAGシステムを構築し、継続のに更新
Set
Wait
Google Drive
+
Set
Wait
Google Drive
29 ノードDavide
人工知能
Paul Graham記事 QA システムを OpenAI と Milvus ベクター DB で構築する
OpenAI と Milvus ベクター データベースを使用して Paul Graham 記事の QA システムを作成
Html
Limit
Split Out
+
Html
Limit
Split Out
22 ノードCheney Zhang
人工知能
エージェントビルダー
GPT-4o、RAG、およびWeb検索を使ったカスタムワークフローの自動構築
If
Set
Code
+
If
Set
Code
33 ノードFranz
ビルディングブロック
MilvusとCohereを使ったRAG AIエージェント
Googleドライブ向けにMilvus、Cohere、OpenAIを使用したRAGドキュメントQ&Aシステム
Google Drive
Agent
Extract From File
+
Google Drive
Agent
Extract From File
14 ノードAitor | 1node.ai
サポート