Retrieval-Augmented Generation chatbot, part 2 - LangChain, Hugging Face, OpenSearch, AWS

preview_player
Показать описание
We'll walk you through the creation of a Retrieval-Augmented Generation (RAG) chatbot using open-source tools and AWS services like LangChain, Hugging Face, Amazon SageMaker, and Amazon OpenSearch Serverless.

We start by deploying Mistral 7B, a cutting-edge open-source LLM, onto a SageMaker endpoint. Following this, we work with the Reuters dataset, a Hugging Face dataset comprising 20,000 news articles. We break down these articles into smaller sections and apply bge-small, a compact open-source embedding model, to them.

Next, we proceed to index these sections into an Amazon OpenSearch Serverless vector index, which we then query through LangChain.

Additionally, aside from the RAG demonstration, we delve into some vital yet often overlooked steps related to authentication and security for OpenSearch Serverless.

Рекомендации по теме
Комментарии
Автор

great, I agree sometimes you have to spend a lot of time on IAM than the original problem what a mess

bhanuchirutha
Автор

this is great, my son and I have both been working on something similar, each for different use cases, this is going to help both of us, salut!

pfunnell
Автор

Excellent to bring out IAM issue, I am experiencing it. I am runnig program in Jy.notebook, not ec2. As admin user, how can I attach role (aoss) to achieve this. Thanks.

ravindranshanmugam
Автор

Julien, if we have a document in S3 that when deleted, i want to trigger a lambda to delete the chunks and embeddings in opensearch belonging to this document. How do I do so ?

Ben-gpty
Автор

This is really great! Thank you! If I want to add this RAG-augmented chatbot to my personal website, how would I do that?

TheMrGoodkind
Автор

Hi Julien, your video is excelente. I have a question, with this solution (using opensearch service) is possible to deploy thought Lambda Service too?

WagnerHeleno
Автор

Thank you Julien! Will there be a tutorial deploying this in a front end chat interface ?

XShollaj
Автор

Hi. Can you explain a little more about the cost of this PoC ? Thanks

sergioquintero