Allow users to create additional knowledge bases.
Currently users can have one knowledge base. This is implemented as a path on S3.
We want to change this by allowing users to create a new LanceDB path and decide which one to plug in at inference time. A few changes are needed to allow this.
change the authenticated user IAM policy so that they can have access to paths in S3 like kb/${cognito_id}/${kb-name}
allow the creation and selection of kb on the front-end
send the kb id along with the inference request, making sure the user has access to the selected path
We should also consider how to share kb with other users. Probably we won't be able to do it only via IAM...
Allow users to create additional knowledge bases.
Currently users can have one knowledge base. This is implemented as a path on S3.
We want to change this by allowing users to create a new LanceDB path and decide which one to plug in at inference time. A few changes are needed to allow this.
kb/${cognito_id}/${kb-name}
We should also consider how to share kb with other users. Probably we won't be able to do it only via IAM...