aws-samples / aws-samples/Serverless-Retrieval-Augmented-Generation-RAG-on-AWS

Additional Knowledge Bases

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
93
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.