Implement on-prem RAG with Qdrant and Ollama for a self-hosted KB
Try It This n8n template provides a self hosted RAG implementation.
How it works Provides one workflow to maintain the knowledge base and another one to query the knowledge base. Uploaded documents are saved into the Qdrant vector store. When a query is made, the most relevant documents are retrieved from the vector store and sent to the LLM as context for generating a response.
How to use Start the workflow by clicking Execute workflow Use the file upload form to upload a document into the knowledge base (Qdrant db). Click Open chat to start asking questions related to the uploaded documents.
Setup steps Below steps show how to setup on Amazon Linux. Consult your OS for respective steps
Install Ollama on prem mkdir ollama cd ollama curl -fsSL https://ollama.com/install.sh | sh ollama --version Install required models ( in Amazon Linux)
ollama pull llama3:8b ollama pull mistral:7b ollama pull nomic-embed-text:latest Access ollama via http://localhost:11434 Fire up Qdrant (e.g. via docker) docker run -p 6333:6333 qdrant/qdrant. Access Qdrant via http://localhost:6333/dashboard Create a Qdrant collection named knowledge-base configured with vector length of 768. NB: Do not forget a persistent docker volume for Qdrant if you want to keep the data when using docker. Point the nodes to the respective on premise Qdrant and Ollama runtimes.
Need Help? Join the Discord or ask in the Forum!
Happy RAGing!
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments