-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permissions in VectorDB #1550
Comments
Hi, at moment every user has their own db unless it's a shared db . We don't currently have capability to set permissions on each document within that shared db, so you can use the file system to control personal collections and their access. E.g. you can use hard or soft links with all docs, and then for each user make a personal db using make_db using a user_path that contains only the links required. |
Can I somehow utilize permission options in qdrant or weaviate to enable said control per user? Or using cli, for a db that contains all documents, enable different documents per user? |
Well, what I was suggesting was related to your 2nd question. You can use file system to avoid dups via soft/hard links in linux, but that's a detail. In general you can have different folders per user. E.g. if the user is "jon" then the folders end up looking like:
for personal collections. To make such dbs one would do:
Then you'll have:
You can add that database to the auth.json for their entry if using auth.json type file, and they will see when they login. Or you can have the user add that collection by name (JonData). i.e. at first user might see: but if they do: and hit enter, then they will see: and you'll see the document count (3) is what I expect from what was in the original input folder. |
I think this is sufficient for now. |
Thank you. One hopefully last question. Can I approach it from document selection perspective, i.e, select only specific documents at the launch of gradio (an option that is available in the UI)? |
Yes, that is the CLI option |
Hi,
I want each user with his own permissions to the VDB.
How can I set permissions for each document in the VDB?
Thank you
The text was updated successfully, but these errors were encountered: