Lessons from building a multi-tenant RAG platform with Django, Celery and OpenSearch
vikasgoddubarla · reddit · 2026-11-26
A developer shares architectural lessons from building an independent document intelligence platform (multi-tenant RAG) with Django, Celery and OpenSearch, supporting separate client workspaces, shared documents, team management, and Google Drive/Outlook integrations.
Pipeline: document sources → background processing → search index → tenant-scoped retrieval → LLM response. Key takeaways:
- Tenant isolation must be enforced at retrieval, not just the frontend
- Ingestion should run async so large files don't block API requests
- Document updates/deletes must propagate to the search index
- External integrations add permission and sync complexity
- Retrieval quality should be evaluated separately from answer quality
He also opens a discussion: per-tenant indexes vs. shared index with strict tenant filters, and how that should evolve at scale.
More from coding & agent
- AgentMail + HydraDB: One-Command Persistent Email Memory for AI Agents — MartinGTobias · 2026-11-26
- LeCun: Building Agents on LLMs Is a Recipe for Disaster — ylecun · 2026-11-26
- PM waits for an AI agent to fix prod: Spawn game's launch-day server meltdown — NickPassig · 2026-11-26
- Microsoft's guide to choosing your Python LLM stack, from raw APIs to agent frameworks — davemccollough · 2026-11-26
- OpenRouter's Emma Marie Cryer: Think cost per task, not cost per token — PaulShellDev · 2026-11-26
- Pyrefly hits 100% Python typing spec conformance, mypy and pyright lag behind — tdhopper · 2026-11-26