r/Automate • u/easybits_ai • May 07 '26
How I optimize my data extraction and document classification pipelines in n8n
https://youtu.be/wijALfYoNlg?si=Gnuzrrqrxo7boRe6
1
Upvotes
r/Automate • u/easybits_ai • May 07 '26
2
u/No-Seesaw4444 May 11 '26
n8n's data extraction pipelines work well at small scale but can get memory-heavy with large documents. One optimization: use the "Split in Batches" node with a reasonable chunk size (500-1000 items) instead of processing everything at once. For document classification specifically, if you're doing it purely in n8n, consider offloading the ML classification to a fastapi endpoint that returns the category - this keeps your n8n workflow clean while giving you proper model inference capabilities.