# Document analysis chatbot with RAG and local LLMs via n8n and Qdrant
This workflow automates the processing of local documents and delivers accurate answers to user questions via chat using retrieval-augmented generation (RAG), Qdrant vector storage, and a local LLM via Ollama. Designed for professionals working with technical documentation, research papers, or internal knowledge bases.
## Who it´s for
- Data scientists automating technical document analysis
- Developers using local files for model training
- Teams needing a chatbot with access to internal documents
- Researchers working on Kaggle tasks requiring deep analysis
- Engineers deploying RAG systems without cloud APIs
## What the automation does
- Monitors a folder for new files (e.g., HTML)
- Extracts text and splits it into chunks using Recursive Text Splitter
- Generates embeddings via local Ollama instance and stores them in Qdrant
- Triggers a LangChain agent on incoming chat messages with windowed memory
- Agent retrieves relevant context from Qdrant and generates precise RAG-based responses
- Supports reasoning chains: query clarification, step-by-step algorithm explanations, code generation
## What´s included
- Ready-to-use n8n workflow
- Trigger logic: file addition and chat message reception
- Integrations with Qdrant, Ollama, and local file system
- Basic vector storage structure and dialogue management
- Textual setup and adaptation guide
## Requirements for setup
- Access to a local or hosted n8n instance
- Running Ollama instance with embedding model support
- Installed and accessible Qdrant (local or Docker)
- Designated folder for document monitoring
- Basic proficiency in n8n node configuration and environment variables
## Benefits and outcomes
- Automatic indexing of new documents without manual input
- Fast, natural-language access to knowledge via chat
- Full autonomy — no reliance on external APIs or cloud services
- Deep analysis of technical materials using reasoning chains
- Support for data science tasks like algorithm explanation or code generation
- Scalable vector storage for growing knowledge bases
- Data privacy ensured through local deployment
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet