n8n workflow template · 23 nodes · Mistral AI
Build a Financial Documents Assistant using Qdrant and Mistral.ai is a free n8n workflow template that starts from the Local File Trigger node and works with Mistral AI and Qdrant. It has 23 nodes, 10 of them AI nodes (Mistral Cloud Embeddings, Default Data Loader, Recursive Character Text Splitter and Chat Trigger). The notes inside the workflow say: “In this workflow, we'll monitor a specific folder on disk that n8n has access to. Since we're using docker, we can either use the n8n volume or mount a folder from the host machine.” 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.
Read more about local file trigger
In this workflow, we'll monitor a specific folder on disk that n8n has access to. Since we're using docker, we can either use the n8n volume or mount a folder from the host machine.
The local file trigger is useful to execute the workflow whenever changes are made to our target folder.
Learn how to delete points using the Qdrant API
To keep our vectorstore relevant, we'll implement a simple synchronisation system whereby documents deleted from the local file folder are also purged from Qdrant. This can be simply achieved using Qdrant APIs.
Learn how to delete points using the Qdrant API
Similarly to the files deleted branch, when we encounter a change in a file we'll update the matching vector point in Qdrant to ensure our vector store stays relevant. Here, we can achieve this my deleting the existing vector point and creating it anew with the updated bank statement.
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 the Qdrant node
Using Qdrant, we'll able to create a simple yet powerful RAG based application for our bank statements. One of Qdrant's most powerful features is its filtering system, we'll use it to manage the synchronisation of our local file system and Qdrant.
Read more about the Question & Answer Chain
Finally, let's use a Question & Answer AI node to combine the Mistral AI model and Qdrant as the vector store retriever to create a local expert for all our bank statements questions.
The 23 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