This workflow follows the Documentdefaultdataloader → Form Trigger recipe pattern — see all workflows that pair these two integrations.
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": "Local PDF RAG - 1 Ingest PDFs (Corrected)",
"nodes": [
{
"parameters": {
"formTitle": "Upload PDF to Local RAG",
"formDescription": "Upload PDF files to add them to the local knowledge base.",
"formFields": {
"values": [
{
"fieldLabel": "PDF files",
"fieldType": "file",
"acceptFileTypes": ".pdf",
"requiredField": true
}
]
},
"options": {}
},
"id": "9c5d3b32-462f-4a37-a03d-7934899a67e4",
"name": "Upload PDF",
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.2,
"position": [
-480,
0
]
},
{
"parameters": {
"dataType": "binary",
"binaryMode": "allInputData",
"loader": "auto",
"textSplittingMode": "simple",
"options": {}
},
"id": "ae8ef7ef-bdf6-41da-b15b-7758fa8e83d2",
"name": "Default Data Loader",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1.1,
"position": [
-160,
0
]
},
{
"parameters": {
"mode": "insert",
"memoryKey": {
"__rl": true,
"mode": "list",
"value": "local_pdf_rag"
},
"embeddingBatchSize": 50
},
"id": "ddb54d5c-a798-4bfb-b26d-b5da3cf3ada3",
"name": "Simple Vector Store - Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"typeVersion": 1.3,
"position": [
180,
0
]
},
{
"parameters": {
"model": "nomic-embed-text",
"options": {}
},
"id": "42eb6a70-6097-4925-af43-8000a8557a0d",
"name": "Ollama Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsOllama",
"typeVersion": 1,
"position": [
0,
260
],
"credentials": {
"ollamaApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Upload PDF": {
"main": [
[
{
"node": "Default Data Loader",
"type": "main",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Simple Vector Store - Insert",
"type": "ai_document",
"index": 0
}
]
]
},
"Ollama Embeddings": {
"ai_embedding": [
[
{
"node": "Simple Vector Store - Insert",
"type": "ai_embedding",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "a81e6ef4-53fb-4a85-9872-bd1b678c332d",
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
ollamaApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Local PDF RAG - 1 Ingest PDFs (Corrected). Uses formTrigger, documentDefaultDataLoader, vectorStoreInMemory, embeddingsOllama. Event-driven trigger; 4 nodes.
Source: https://gitlab.com/syedali1621/n8n-ollama-rag-workflows/-/blob/main/Local_PDF_RAG_1_Ingest_CORRECTED.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.
Demo: RAG in n8n. Uses formTrigger, documentDefaultDataLoader, vectorStoreInMemory, agent. Event-driven trigger; 13 nodes.
RAG Pipeline. Uses formTrigger, vectorStoreQdrant, embeddingsOllama, documentDefaultDataLoader. Event-driven trigger; 13 nodes.
Click here to view the YouTube Tutorial
This template shows how to use the Question and Answer tool to save costs in RAG use cases.
DermAI. Uses telegramTrigger, agent, lmChatOllama, vectorStoreInMemory. Event-driven trigger; 13 nodes.