But I stuck on ingecting of vector db step. I’ve got an error “Error inserting: null value in column “doc_id” of relation “documents” violates not-null constraint“ on pg vector store node.
I would need to check your specific setup. However, from just looking at the nodes it is clear where the error comes from right? Right in the “Set File ID” node one of your items has an item with the doc_id of null soyou can just check the first bit of the flow to find out the issue. In “Create Document Rows Table” you have defined “doc_id TEXT NOT NULL REFERENCES document_metadata(id) ON DELETE CASCADE,” so that is why it doesnt allow null.
Additionally, I can recommend to checkout some of the flows from Cole Medin. For example you can import this RAG workflow which has almost the same structure as yours:
You can probably modify it easily to fit your use case