HKUDS / LightRAG

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

Add user_id based insertion #267

Open Tejaswgupta opened 1 week ago

Tejaswgupta commented 1 week ago

With the current implementation it's slightly difficult to use LightRag in organizational setting where global documents needs to be restricted within teams and local documents could just be for specific users.

I haven't checked out the code thoroughly , but how easy/difficult would this be?

LarFii commented 3 days ago

This is indeed an interesting feature. I personally believe it wouldn’t be very complex to implement. You could simply build separate graphs for different documents and determine the working path before executing the query. However, there might be some additional considerations, such as encryption or access control, to ensure proper security.