n8n workflow template · 35 nodes · Mistral AI
Breakdown Documents into Study Notes using Templating MistralAI and Qdrant is a free n8n workflow template that starts from the Local File Trigger node and works with Mistral AI and Qdrant. It has 35 nodes, 16 of them AI nodes (Default Data Loader, Recursive Character Text Splitter, Mistral Cloud Embeddings and Mistral Cloud Chat Model). The notes inside the workflow say: “Join the Discord or ask in the Forum!” To run it, you add your own credentials for Mistral Cloud API and Qdrant API.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Join the Discord or ask in the Forum!
Read more about Local File Trigger
With n8n's local file trigger, we're able to trigger the workflow when files are created in our target folder. We still have to import them however as the trigger will only give the file's path. The "Extract From" node is used to get at the file's contents.
Learn more about using the Qdrant VectorStore
Capturing the document into our vector store is intended for a technique we'll use later known as Retrieval Augumented Generation or "RAG" for short. For our scenario, this allows our LLM to retrieve context more efficiently which produces better respsonses.
We'll ask the LLM to help us generate 3 types of notes from the imported source document. These notes are intended to breakdown the content for faster study. Our templates for this demo are: (1) Study guide (2) Briefing document (3) Timeline
Learn more about writing to the local filesystem
Finally, the AI generated documents can now be exported to disk. This workflow makes it easy to generate any kind of document from various source material and can be used for training and sales.
Read more about using the Question & Answer Retrieval Chain
n8n allows us to easily use a chain of LLMs as agents which can work together to handle any task! Here the agents generate questions to explore the content of the source document and use the answers to generate the template.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
The 35 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us