Works with the AI Agents you already use

    n8n PDF RAG Workflow

    by kawthar

    1

    Architect and troubleshoot n8n PDF RAG workflows with custom chunking and in-memory vector retrieval.

    Free

    Security scanned

    About this skill

    Building a PDF-based RAG pipeline in n8n often fails due to misconfigured sub-node connectors, losing data on restarts, or incorrect routing between ingestion and retrieval branches. This skill provides the precise architecture and configuration steps to deploy a functional in-memory PDF RAG workflow.

    What it does

    • Multi-branch routing creates logic to separate PDF file ingestion from text-based question answering using n8n IF nodes.
    • Custom text chunking configures Recursive Character Text Splitters with specific 600/80 parameters for optimal retrieval.
    • Vector store integration maps binary data loaders to in-memory vector stores using shared memory keys.
    • Agentic retrieval connects AI Agents to Query Data Tools using the retrieve-as-tool mode for grounded responses.
    • Model configuration specifies embedding and chat model setups using Ollama-based local LLMs like Llama 3.2.

    How it works

    1. Initialize a Chat Trigger with file uploads enabled and route the payload through an IF node to detect binary data.
    2. Build the ingestion branch by connecting the Default Data Loader to a Vector Store sub-node using custom text splitting.
    3. Configure the retrieval branch by attaching an AI Agent to a Query Data Tool sharing the same vector memory key.
    4. Verify sub-node connections for embeddings and language models to ensure the tool executes correctly.

    Frameworks & tools

    This skill focuses on n8n workflow automation, specifically utilizing the AI Agent, Vector Store (In-Memory), Default Data Loader, and Ollama integration for local embedding (nomic-embed-text) and chat (llama3.2).

    Why this beats prompting it yourself

    Generic AI prompts often confuse n8n execution arrows with sub-node connectors, leading to invalid workflow JSON. This skill enforces specific chunking sizes and memory key consistency that prevents the "missing context" errors common in DIY RAG setups.

    Use cases

    • Build a private document assistant that processes local PDFs without external APIs.
    • Fix broken n8n workflows where the agent fails to query the vector store.
    • Scaffold a reusable RAG template for team-wide document analysis.
    • Transition from simple chat bots to tool-augmented agents that cite local files.

    Known limitations

    The vector store is in-memory only, meaning data is lost upon n8n service restarts. It requires manual re-upload of PDFs for new sessions unless swapped for a persistent database.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Accounts
    n8n
    Software
    Ollamanomic-embed-textllama3.2

    Permissions

    Network Access
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    This skill solves common n8n errors like disconnected sub-nodes, inconsistent memory keys, and failed binary-to-text conversion during PDF ingestion. It provides a blueprint for a functional RAG pipeline that actually retrieves data instead of hallucinating.

    While optimized for Ollama (Llama 3.2 and Nomic embeddings) to ensure privacy, the architecture is model-agnostic. You can easily swap the Ollama nodes for OpenAI, Anthropic, or Mistral if you prefer cloud-based LLMs.

    The purchase includes the complete n8n workflow JSON file, a configuration guide for the vector memory keys, and specific parameters for the text splitter nodes to ensure optimal document chunking.

    This workflow uses the In-Memory Vector Store for high speed and zero-cost setup; however, data is cleared when the n8n instance restarts. The architecture is designed so you can later swap the In-Memory node for a persistent database like Pinecone or Qdrant if needed.

    You will need an active n8n instance (v1.1.0 or higher recommended) with the LangChain/AI nodes enabled. If you plan to run it locally as described, you should also have Ollama installed and the required models pulled.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free