I am new user of N8N. I have read that there was no stupid question … and really hope so.
I am trying to write a program which list all PDF files in a directory, reads them and inject them in a Qdrant Vectore Store, ultimately to use it by an AI Agent. Bascially, this is a “simple” RAG solution for my colleagues (and myself) as we have to read many long regulation and interpret them…
/data/shared $ ls -al
total 3988
drwxrwxrwx 1 root root 4096 Nov 6 19:55 .
drwxr-xr-x 3 root root 4096 Oct 27 11:23 …
-rwxrwxrwx 1 root root 2583319 Nov 6 19:55 AIACT.pdf
-rwxrwxrwx 1 root root 1493241 Nov 2 17:16 DORA.pdf
and this is my workflow (I have removed the vectore store object)
it loops well twice but processes twice the first file of the directory (AIACT.pdf) … while I ideally want it to loop twice and process each file only once.
Is there something wrong in the “Loop Over Items” definition? Or something wrong in the output of previous node?
you might indeed be right. I can not reproduce the “problem” so it is likely that I wrongly interpreted the output message.
For info. I had another problem wher PDF file I wanted to upload were too heavy. I split them up into several smaller files.
My final (and working solution) is this one:
witht a vector Db containing a bit more than 53K points. The whole solutions sounds to be ok.