Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.88 KB

README1.md

File metadata and controls

39 lines (30 loc) · 1.88 KB

RAG with ACLs on Amazon FSx for NetApp ONTAP data using Amazon Bedrock and Langchain

Overview

This reference architecture implemets the a RAG Chat engine on top of Amazon FSx for ONTAP (FSxN) data that has predefined access permission using ACLs with Active Directory.

Infrastructure Allocation

This will create all the required AWS and application resources to on your AWS account using Terraform. You can read about it here.

general architecture

Embedding Engine

This process takes the documents stored on the FSxN filesystem and embeds them together with the Access Control List into the OpenSearch Vector DB. You can read about the process in more details here.

embedding

Retrieval Engine

The retrieval engine works as a Lambda function that get a promp and model parameter for retrieval and uses RAG to get answers based on the embedding on the FSxN data. It also filters data access based on SID (ACL) provided. You can read more about the process in more details here

Chatbot

The chat bot is a simple chat UI that simplifies access to the retrival engine. You can read more about the chat bot in more details here

Test

Prerequisites

Start the environment

Use the following to start the environment:

terraform init
terraform apply --auto-approve

Clear the environment

Use the following to clear the environment:

terraform destroy --auto-approve