Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Cut RAG Costs with a Q&A Tool and Multiple Retrieval Steps
When a file is uploaded it is embedded into a vector store, and when a chat message arrives an OpenAI agent answers through a cheaper question-answer tool.
What it does
### Readme Load your data into a vector database with the 📚 Load Data flow, and then use your data as chat context with the 🐕 Retriever flow. Quick start 1. Click on the Execute Workflow button to run the 📚 Load Data flow. 2. Click on Open Chat button to run the 🐕 Retriever flow. Then ask a question about content from your document(s) For more info, check our docs on RAG in n8n
The steps
- Upload your file here
- Embeddings OpenAI
- Default Data Loader
- Insert Data to Store
- Query Data Tool
- AI Agent
- When chat message received
- Answer questions with a vector store
- Expensive model
- Cheap Model
Similar automations
MCP Servers & ToolsOpenIndex Retrieval Plugin API as an MCP Server2 stepsRAG & Knowledge BasesAdd Citations to OpenAI File Retrieval RAG Answers12 stepsRAG & Knowledge BasesOpenAI File Retrieval RAG Chat with Citations33 stepsRAG & Knowledge BasesOpenAI File Retrieval RAG Chat with Citations33 steps