{
  "name": "ingest_documents",
  "nodes": [
    {
      "id": "Manual Trigger",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -560,
        140
      ],
      "parameters": {}
    },
    {
      "id": "Load Products",
      "name": "Load Products",
      "type": "n8n-nodes-base.readBinaryFile",
      "typeVersion": 1,
      "position": [
        -320,
        140
      ],
      "parameters": {
        "filePath": "/data/products.json"
      }
    },
    {
      "id": "Split Text",
      "name": "Split Text",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "typeVersion": 1,
      "position": [
        -80,
        140
      ],
      "parameters": {
        "chunkSize": 500,
        "chunkOverlap": 50
      }
    },
    {
      "id": "Embeddings",
      "name": "Embeddings",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "typeVersion": 1,
      "position": [
        160,
        140
      ],
      "parameters": {
        "model": "text-embedding-3-small"
      }
    },
    {
      "id": "Upsert Qdrant",
      "name": "Upsert Qdrant",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "typeVersion": 1,
      "position": [
        420,
        140
      ],
      "parameters": {
        "operation": "insert",
        "collection": "products"
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Load Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Products": {
      "main": [
        [
          {
            "node": "Split Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Text": {
      "main": [
        [
          {
            "node": "Embeddings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings": {
      "main": [
        [
          {
            "node": "Upsert Qdrant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}