How to preserve a value and inject back in later?

Describe the problem/error/question

I am extremely new to all this so I am sorry if this is a stupid question. I am trying to build a RAG system using Qdrant. My Add and Delete paths work great. So for change I figured I could just duplicate and string the 2 processes along BUT my delete process strips out the original path that is passed from the File Change Trigger so by the time it deletes and should trigger the Read/Write node it doesn’t have the path it needs. Is there some form of node I can put in that preserves the original path and runs parallel to the delete process and waits for it to complete and then injects it into the Read/Write? Or some other way to handle it? Thanks!

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

File Change Trigger Output:
[ { “event”: “change”,
“path”: “/rag_kb/TestFile.txt” } ]

Information on your n8n setup

  • n8n version: 1.62.4
  • Database (default: SQLite): Qdrant
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Unraid

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @dping28 , I think what you need is the means described in Output of other nodes | n8n Docs. The data is still available, you just need to know how to access it.

2 Likes

THANK YOU! That worked perfectly!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.