HKUDS / LightRAG

"LightRAG: Simple and Fast Retrieval-Augmented Generation"
https://arxiv.org/abs/2410.05779
MIT License
9.22k stars 1.13k forks source link

Multi-User / Multi-Tenant #310

Open cromulus opened 2 days ago

cromulus commented 2 days ago

Hello! After evaluating a bunch of graph based RAG tools, LightRAG looks like the best!

Quick question, and perhaps I am missing this somewhere in the documentation: is it possible to have multiple users/tenants?

From all of the examples, it appears as if there is a single, global graph that all queries and inserts use.

I have a use-case with multiple users, where each user's data and graph must be completely private separate from all other user's graphs.

How would one do that with LightRAG?

Thank you!

magicyuan876 commented 2 days ago

Different users can use different directories to build knowledge graphs and Q&A systems. graph_dir_path is the directory you specify yourself. rag = LightRAG( working_dir=graph_dir_path, llm_model_func=llm_model_func, embedding_func=EmbeddingFunc( embedding_dim=embedding_dimension, max_token_size=8192, func=embedding_func, ), )