๐ RAG Starter Template using Simple Vector Stores, Form trigger and OpenAI
โก 93,496 views ยท ๐ Internal Wiki & Knowledge Base
Description
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
- Add custom instructions to your Agent by changing the prompts in it.
- 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.
- Exchange the
Simple Vector Storenodes with your own vector store tools ready for production. - Add a more sophisticated way to rank files found in the vector store.
For more information read our docs on RAG in n8n.
๐ Nodes Used
AI Agent, Embeddings OpenAI, OpenAI Chat Model, Simple Vector Store, n8n Form Trigger, Default Data Loader
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File