You are helping me build the following AI agent workflow. ## Goal Local RAG Chatbot for PDF Documents: Upload PDFs to a local vector store and ask questions; the agent retrieves relevant text chunks from your documents to generate accurate... ## Specification - What it does: Upload your PDFs to create a private chatbot that answers questions directly from your documents without sending data outside your computer. You simply ask questions in plain language, and the system retrieves relevant text chunks from your files to generate accurate responses using local tools like Qdrant and Ollama. - Trigger: Run manually (Manual ยท on demand) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - n8n: Workflow orchestration and automation - Ollama Chat Model: Local LLM inference for chat responses - Qdrant Vector Store: Storing and retrieving document embeddings - Embeddings Ollama: Generating vector embeddings for text chunks ## Known pitfalls, handle each one explicitly in your implementation 1. Ollama models may drift from local hardware capabilities, so monitor GPU memory usage and switch to CPU-only models if necessary. 2. Qdrant collections need explicit schema definitions for metadata, so configure the vector store node to handle document source tags correctly. 3. Retrieval quality drops with noisy text extraction, so add a preprocessing step to clean whitespace or remove headers before embedding. ## Reference implementation https://n8n.io/workflows/5148 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/local-rag-chatbot-for-pdf-documents/ via usecasesforagents.com