The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "RAG Retrieval Example",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "search",
"responseMode": "responseNode"
},
"id": "12345678-1234-1234-1234-123456789012",
"name": "Search Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"query": "={{ $json.query }}",
"searchType": "vector",
"limit": 10,
"threshold": 0.7,
"embeddingProvider": "openai",
"embeddingModel": "text-embedding-ada-002",
"vectorStoreProvider": "qdrant",
"vectorStoreEndpoint": "http://localhost:6333",
"collectionName": "knowledge_base",
"includeMetadata": true
},
"id": "23456789-2345-2345-2345-234567890123",
"name": "RAG Retrieval",
"type": "n8n-nodes-rag.ragRetrieval",
"typeVersion": 1,
"position": [
460,
300
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify($json) }}"
},
"id": "34567890-3456-3456-3456-345678901234",
"name": "Respond with Results",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
680,
300
]
}
],
"connections": {
"Search Webhook": {
"main": [
[
{
"node": "RAG Retrieval",
"type": "main",
"index": 0
}
]
]
},
"RAG Retrieval": {
"main": [
[
{
"node": "Respond with Results",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "45678901-4567-4567-4567-456789012345",
"id": "56789012-5678-5678-5678-567890123456",
"tags": []
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
RAG Retrieval Example. Uses n8n-nodes-rag. Webhook trigger; 3 nodes.
Source: https://github.com/QixYuanmeng/n8n-nodes-rag/blob/60ee03ac41aa943c4eea8f659bf528e5f1893109/examples/retrieval-workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Generate Text-To-Speech Using Elevenlabs Via Api. Uses respondToWebhook, httpRequest, stickyNote. Webhook trigger; 6 nodes.
WhatsApp → OpenAI (FastAPI). Uses httpRequest. Webhook trigger; 5 nodes.
Get Postgres Tables. Uses respondToWebhook, postgres, summarize. Webhook trigger; 4 nodes.
Create Google Doc. Uses googleDrive, respondToWebhook. Webhook trigger; 3 nodes.
Post Message to Slack. Uses slack, respondToWebhook. Webhook trigger; 3 nodes.