{"product_id":"chat-with-private-documents-in-n8n-ollama-qdrant","title":"Chat with Private Documents in n8n: Ollama + Qdrant","description":"\u003ch3\u003eChat with your private documents in n8n—powered by Ollama embeddings and Qdrant\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow lets you upload confidential files, index them into \u003cstrong\u003eQdrant\u003c\/strong\u003e using \u003cstrong\u003eOllama\u003c\/strong\u003e embeddings, and then chat with an AI agent that answers questions by retrieving the most relevant passages from your stored documents.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSecure document upload:\u003c\/strong\u003e A basic-auth protected n8n form receives your uploaded documents.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepare text for search:\u003c\/strong\u003e The workflow loads the file, attaches metadata (including the \u003cem\u003esource filename\u003c\/em\u003e and \u003cem\u003eupload time\u003c\/em\u003e), and splits text into chunks.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmbed and index in Qdrant:\u003c\/strong\u003e Each chunk is embedded with Ollama using \u003cstrong\u003enomic-embed-text\u003c\/strong\u003e and inserted into a Qdrant collection (uses the \u003cstrong\u003eprivate_documents\u003c\/strong\u003e collection name).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAuthenticated chat interface:\u003c\/strong\u003e A hosted chat UI requires n8n user login.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRAG-style answering with citations:\u003c\/strong\u003e For every user message, an Ollama chat model (with conversation memory) searches Qdrant for relevant passages and returns a short answer based only on retrieved document content. It appends the \u003cstrong\u003esource filenames\u003c\/strong\u003e, or reports it can’t find the answer in the documents.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAnswer questions from internal policies, SOPs, or runbooks without exposing files to third-party SaaS chatbots.\u003c\/li\u003e\n  \u003cli\u003eEnable support teams to query knowledge from uploaded documents while keeping responses grounded in the source text.\u003c\/li\u003e\n  \u003cli\u003eBuild a lightweight document Q\u0026amp;A feature for your organization using n8n, Ollama, and Qdrant.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e Form Trigger, LangChain Agent, LangChain Chat Trigger, Ollama Chat Model, Ollama Embeddings, plus supporting workflow steps.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOllama models:\u003c\/strong\u003e Example models include \u003cstrong\u003ellama3.1:8b\u003c\/strong\u003e and \u003cstrong\u003enomic-embed-text:latest\u003c\/strong\u003e (editable to match your installation).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQdrant integration:\u003c\/strong\u003e Qdrant credential connects to your Qdrant instance and stores embedded passages for retrieval.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46081436418227,"sku":"N8N-19862","price":18.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/4f5-rUo8RG7e0f8HI6VIR_5RwMZQkD.png?v=1790241314","url":"https:\/\/buyflowscripts.com\/products\/chat-with-private-documents-in-n8n-ollama-qdrant","provider":"N8N Commerce","version":"1.0","type":"link"}