Multi-Tenant RAG Search n8n Workflow: Qdrant + GPT-4o
Multi-Tenant RAG Search n8n Workflow: Qdrant + GPT-4o
Regular price
£45.99
Regular price
£45.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
Multi-Tenant RAG Search n8n Workflow: Qdrant + GPT-4o
Regular price
£45.99
Regular price
£45.99
Sale price
Unit price
/
per
Multi-Tenant RAG answers from Qdrant + GPT-4o—via a single n8n POST webhook
Bring Retrieval-Augmented Generation (RAG) to your SaaS: this n8n workflow receives a tenant-scoped query, embeds it with OpenAI, searches the correct Qdrant vectors, and returns a grounded GPT-4o answer with bracketed citations and usage metrics—without leaking data across tenants.
What this workflow does
-
Exposes a POST webhook that accepts a user query plus tenant identifiers (e.g.,
x-tenant-idin headers). - Validates inputs (tenant ID and query). Missing/invalid requests are routed to an HTTP error response.
-
Creates a vector embedding using OpenAI Embeddings (
text-embedding-3-small). -
Performs multi-tenant Qdrant search with payload filters enforcing
tenant_id, plus optionalworkspace_idandcategory, along with a similarity threshold. - Formats retrieved chunks into a single context block and builds a structured citations list from the payload.
-
Generates a grounded response using OpenAI Chat Completions with GPT-4o, instructing it to use only the provided context and cite sources like
[Source 1]. - Returns a final JSON response including answer, citations, similarity metrics, and token usage.
Use cases
- Tenant-specific support Q&A where each workspace’s knowledge base must remain isolated.
- SaaS operators building an internal “ask your docs” feature with Qdrant-backed RAG.
- Automation engineers deploying a webhook-driven RAG endpoint for chat or agent workflows.
Technical details
-
n8n nodes:
webhook,if,code,http request,respond to webhook, plus asticky notefor guidance. - Integrations: OpenAI (embeddings + GPT-4o) and Qdrant (vector search with multi-tenant payload filters).
-
Environment/config: set
OPENAI_API_KEY, and configure Qdrant connection details such asQDRANT_HOSTandQDRANT_API_KEYif required.
