Breakdown documents into study notes using templating MistralAI and Qdrant
Ready for 3.0What this workflow does
This AI workflow has 35 nodes and runs on Local File events (add). Along the way it connects Embeddings Mistral Cloud, Mistral Cloud Chat Model and Qdrant Vector Store.
How it runs
Trigger: On Local File events (add).
- Settings (Edit Fields (Set)): sets 3 fields: project, path, filename
- Import File (Read/Write Files from Disk): reads a file from disk
- Get FileType (Switch): routes items into 3 branches
- Extract from PDF (Extract from File): extracts data from a file (pdf)
- Extract from DOCX (Extract from File): extracts data from a file (ods)
- Extract from TEXT (Extract from File): extracts data from a file (text)
- Prep Incoming Doc (Edit Fields (Set)): sets 1 field: data
- Qdrant Vector Store: stores documents in the Qdrant vector store, with embeddings: Embeddings Mistral Cloud; document loader: Default Data Loader
- Summarization Chain: summarizes text with AI, with model: Mistral Cloud Chat Model
- Merge: merges the data from its input branches
…plus 13 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (21)
- Local File Trigger
n8n-nodes-base.localFileTrigger - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Embeddings Mistral Cloud
@n8n/n8n-nodes-langchain.embeddingsMistralCloud - Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Item List Output Parser
@n8n/n8n-nodes-langchain.outputParserItemList - Vector Store Retriever
@n8n/n8n-nodes-langchain.retrieverVectorStore - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Aggregate
n8n-nodes-base.aggregate - Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa - Wait
n8n-nodes-base.wait - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Convert to File
n8n-nodes-base.convertToFile - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Switch
n8n-nodes-base.switch - Extract from File
n8n-nodes-base.extractFromFile - Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization
From the author
This n8n workflow takes in a document such as a research paper, marketing or sales deck or company filings, and breaks them down into 3 templates: study guide, briefing doc and timeline. These templates are designed to help a student, associate or clerk…