Skip to content

Sample implementation of RAG using OpenSearch Vector capabilities with Bedrock Claude and Chatbot using streamlit

License

Notifications You must be signed in to change notification settings

arnabaws15/Gen-AI-Sample-RAG-with-Bedrock-OpenSearch

Repository files navigation

This repo is for building a chatbot using streamlit, bedrock and opensearch. The architecture is using Retrieval Augmented Generation (RAG) where the LLM is using the related documents from the context to answer service specific queries.

This repo assumes you have a working Opensearch cluster and access to Bedrock Anthorpic claude v2 LLM

Pre-requisites:

  • Create an Opensearch cluster
  • Setup neural plugin for vector embeddings
  • Create a neural pipline
  • Create an open search index
  • Ingest service documents in Opensearch index You can use the notebook in this repo to cover the above steps
  1. Env Variables for the chatbot to work!
  • export BWB_REGION_NAME=Region
  • export BWB_ENDPOINT_URL=Bedrock Endpoint
  • export BWB_PROFILE_NAME=profile for aws cli
  • export BWB_AOS_DOMAIN_ENDPOINT=Opensearch Domain Endpoint

Architecture

image

About

Sample implementation of RAG using OpenSearch Vector capabilities with Bedrock Claude and Chatbot using streamlit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published