# Build a Financial Documents Assistant using Qdrant and Mistral.ai

Link: [https://n8n.io/workflows/2335-build-a-financial-documents-assistant-using-qdrant-and-mistralai/](https://n8n.io/workflows/2335-build-a-financial-documents-assistant-using-qdrant-and-mistralai/)

<div class="details-column_riLGn" id="bkmrk-" style="text-align: justify;"><div class="workflow-details_r3SCz"><div class="bottom-details_X8Bbr"><div></div></div></div></div><div class="details-column_riLGn" id="bkmrk--1" style="text-align: justify;"><div class="workflow-details_r3SCz"><div class="bottom-details_X8Bbr"></div></div></div><div class="template-column_G3Q-B" id="bkmrk-click-to-explore-tem" style="text-align: justify;"><div class="workflow-preview_6f4BW"><div class="preview-container_Sot2H"><div class="dots_kK495"></div><div class=" embedded_workflow "><div class="canvas-container"><div class="overlay" hidden=""><button>Click to explore</button></div></div></div></div></div><div class="description_gTlAZ"><span style="color: rgb(187, 187, 187); font-family: var(--font-heading, var(--font-body)); font-size: 2.333em; font-weight: 400;">Template description</span>  
</div></div>This n8n workflow demonstrates how to manage your Qdrant vector store when there is a need to keep it in sync with local files. It covers creating, updating and deleting vector store records ensuring our chatbot assistant is never outdated or misleading.

## Disclaimer

This workflow depends on local files accessed through the local filesystem and so will only work on a self-hosted version of n8n at this time. It is possible to amend this workflow to work on n8n cloud by replacing the local file trigger and read file nodes.

## How it works

<div class="template-column_G3Q-B" id="bkmrk-a-local-directory-wh" style="text-align: justify;"><div class="description_gTlAZ"><div class="workflow__details-md_content">- A local directory where bank statements are downloaded to is monitored via a local file trigger. The trigger watches for the file create, file changed and file deleted events.
- When a file is created, its contents are uploaded to the vector store.
- When a file is updated, its previous records are replaced.
- When the file is deleted, the corresponding records are also removed from the vector store.
- A simple Question and Answer Chatbot is setup to answer any questions about the bank statements in the system.

</div></div></div>## Requirements

<div class="template-column_G3Q-B" id="bkmrk-a-self-hosted-versio" style="text-align: justify;"><div class="description_gTlAZ"><div class="workflow__details-md_content">- A self-hosted version of n8n. Some of the nodes used in this workflow only work with the local filesystem.
- Qdrant instance to store the records.

</div></div></div>## Customising the workflow

This workflow can also work with remote data. Try integrating accounting or CRM software to build a managed system for payroll, invoices and more.

## Want to go fully local?

A version of this workflow is available which uses Ollama instead. You can download this template here: [https://drive.google.com/file/d/189F1fNOiw6naNSlSwnyLVEm\_Ho\_IFfdM/view?usp=sharing](https://drive.google.com/file/d/189F1fNOiw6naNSlSwnyLVEm_Ho_IFfdM/view?usp=sharing)