BoxcarsAI / boxcars

Building applications with composability using Boxcars with LLM's. Inspired by LangChain.
MIT License
430 stars 39 forks source link

Reg: User account specific / Support multi-tenancy #77

Closed bazooka720 closed 9 months ago

bazooka720 commented 1 year ago

This is a great library and wondering if you can support multi-tenancy? If we have various tenants and each tenant has users. How to enable the functionality to be scoped to the user (rather than as admin)

francis commented 1 year ago

We would be glad to consider this. Tell me more about where you would like to see support for this. In the ActiveRecord boxcar?

snawar92 commented 1 year ago

We would be glad to consider this. Tell me more about where you would like to see support for this. In the ActiveRecord boxcar?

hi @francis can we pass user_id column in active record boxcar? and also made it mandatory for every query where we include specific column ? is this possible ?

bazooka720 commented 1 year ago

@francis Thoughts on this?

francis commented 1 year ago

Let me make sure this works and get back to you, but I think you can pass the user id in as context.

francis commented 1 year ago

It doesn't quite work yet. I'm planning on changing the ActiveRecord boxcar to take additional context and use it in the prompt. I believe your use case would be solved with this.

bazooka720 commented 1 year ago

Thanks a lot @francis. A key part would be to make sure there are safeguards to manage the scope properly so data does not leak between users

erlingur commented 7 months ago

@francis Was this completed? Also looking for this but I can't see how to accomplish this in the docs?