Templates / Save Costs In RAG Workflows using the Q&A Tool With Multiple Models

Save Costs In RAG Workflows using the Q&A Tool With Multiple Models

Ready for 3.0

by Niklas Hatje ✓ · 10,760 views · created 2025-06-17 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (8)

Embeddings OpenAIDefault Data LoaderSimple Vector StoreAI AgentVector Store Question AnswerOpenAI Chat Model

What it does

This template shows how to use the Question and Answer tool to save costs in RAG use cases. 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. Describe your data properly in the Q&A tool 4. Exchange the Simple Vector Store nodes with your own vector store tools ready for production. 5. Add a more sophisticated way to rank files found in the vector store. For more information read our docs on RAG in n8n.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.