{
  "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": []
}