Skip to content

Add enterprise multi-tenant RAG example with LangChain + Weaviate#304

Open
parikshitiiitb wants to merge 4 commits into
weaviate:mainfrom
parikshitiiitb:add-enterprise-multitenant-rag
Open

Add enterprise multi-tenant RAG example with LangChain + Weaviate#304
parikshitiiitb wants to merge 4 commits into
weaviate:mainfrom
parikshitiiitb:add-enterprise-multitenant-rag

Conversation

@parikshitiiitb

Copy link
Copy Markdown

Description

This PR adds a production-oriented recipe demonstrating how to build a multi-tenant RAG system using Weaviate and LangChain.

While most existing examples focus on single-tenant setups, real-world enterprise RAG deployments typically require tenant-level data isolation. This notebook introduces a practical and reproducible pattern using Weaviate’s multi-tenancy features.

Key highlights:

  • Multi-tenant collection with per-tenant isolation
  • Tenant-scoped document ingestion
  • Hybrid search (semantic + BM25)
  • Metadata filtering for enterprise access control
  • Local-first setup using Embedded Weaviate (no API keys required)
  • Minimal LangChain-style retriever integration
  • Clear migration path to production (Weaviate Cloud + OpenAI)

This pattern is especially useful for enterprise knowledge bases serving multiple business units on shared infrastructure.


Contribution Type

  • Integration
  • Weaviate feature
  • Weaviate service

Promotion

Closes #301

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@weaviate-git-bot

Copy link
Copy Markdown

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Forum?

@parikshitiiitb

Copy link
Copy Markdown
Author

I agree with the CLA

@parikshitiiitb

Copy link
Copy Markdown
Author

Hi team,
just checking in on this PR. Happy to address any feedback
or make changes if needed. Let me know if there's anything I can improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add enterprise multi-tenant RAG example with LangChain + Weaviate

2 participants