I want to build an application that enables organizations to query their documents with natural language.
The basic solution would be to upload all documents to the vectorDB and the query for the nearest neighbors. The issue is that not all users in the organization have access to all documents.
Ideally, we can limit the search over documents from Pinecone based on the role of the user. Is this possible? Is this functionality on the roadmap?
Very interested in this. Did you find a solution? I assumed that namespace / metadata could be used for this but what about the growing size of the index?
Yes! This is absolutely the way to go about what you want to do. I would suggest you take a look at Metadata filtering which I think is exactly what you are looking for
What I would do just for future proofing is making “allowed_roles” an array of roles. Just in case some might be available to more than one role.
Thank you for the provided information. This is very helpful.
What should be the approach in cases where new roles are added/removed for existing documents? I mean for docs that are already added/indexed in Pinecone with previous roles. Are you familiar with a commercial solution that resolves this matter of dynamic access provisioning?