A production pattern for RAG systems serving multiple isolated tenants from a single Weaviate collection: the architecture behind enterprise internal knowledge bases.
- Multi tenant collection setup with per-tenant isolation
- Scoped document ingestion per tenant
- Tenant aware hybrid search (semantic + BM25)
- Minimal LangChain integration demonstrating tenant aware retrieval
- Basic handling of empty tenant queries
Use multi tenancy when:
- Multiple teams/BUs share infrastructure but need data isolation
- You can't afford separate Weaviate instances per team
- You need tenant-level access control
pip install -r requirements.txt- Run the notebook top to bottom
See the "MODE 2" section in the notebook for migration steps.
Parikshit Sharma — Principal ML Engineer, production RAG systems