RAG Starter Template using Simple Vector Stores, Form trigger and OpenAI

Nodes

9c37fa7f-8da8-447f-886c-c8b0d3c3533c1841584d-f090-40d7-8a99-6d8ec8df82fd57932fab-a25f-4afc-8917-5e99648bfd3c24e3b914-15fa-444f-80e3-ca29bdacaf40

Created by

n8n8n Team

Last edited 39 days ago

This template quickly shows how to use RAG in n8n.

Who is this for?

This template is for everyone who wants to start giving knowledge to their Agents through RAG.

Requirements

Have a PDF with custom knowledge that you want to provide to your agent.

Setup

No setup required. Just hit Execute Workflow, upload your knowledge document and then start chatting.

How to customize this to your needs

  1. Add custom instructions to your Agent by changing the prompts in it.
  2. Add a different way to load in knowledge to your vector store, e.g. by looking at some Google Drive files or loading knowledge from a table.
  3. Exchange the Simple Vector Store nodes with your own vector store tools ready for production.
  4. Add a more sophisticated way to rank files found in the vector store.

For more information read our docs on RAG in n8n.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!