In today's assignment, we'll be creating an Open Source LLM-powered LangChain RAG Application.
There are 2 main sections to this assignment:
Build Task 1: Deploy LLM and Embedding Model to SageMaker Endpoint Through Hugging Face Inference Endpoints
Select "Inference Endpoint" from the "Solutions" button in Hugging Face:
Create a "+ New Endpoint" from the Inference Endpoints dashboard.
Select the meta-llama/Llama-2-7b-chat-hf
model repository and name your endpoint. Select N. Virginia as your region (us-east-1
). Give your endpoint an appropriate name.
Select the following settings for your Advanced Configuration
.
Create a Protected
endpoint.
If you were successful, you should see the following screen:
You'll repeat the same process for your embeddings model!
We'll work through this week's notebook after setting up our endpoints!
The notebook will be broken into the following parts:
-
๐ค Breakout Room #1:
- Set up Hugging Face Inference Endpoints
- Install required libraries
- Set Environment Variables
- Testing our Hugging Face Inference Endpoint
- Creating LangChain components powered by the endpoints
- Retrieving data from Arxiv
- Creating a simple RAG pipeline with LangChain v0.1.0
-
๐ค Breakout Room #2:
- Set-up LangSmith
- Creating a LangSmith dataset
- Creating a custom evaluator
- Initializing our evaluator config
- Evaluating our RAG pipeline
The Colab link is provided here
Please head to the settings of each endpoint and select Delete Endpoint
. You will need to type the name of the endpoint to delete the resources.
- Completed Notebook
- Screenshot of endpoint usage
Example Screen Shot:
Create a Hugging Face Space powered by a SageMaker Endpoint!
- A short Loom of the space, and a 1min. walkthrough of the application in full
Make a social media post about your final application!
- Make a post on any social media platform about what you built!
Here's a template to get you started:
๐ Exciting News! ๐
I am thrilled to announce that I have just built and shipped a open-source LLM-powered Retrieval Augmented Generation Application with LangChain! ๐๐ค
๐ Three Key Takeaways:
1๏ธโฃ
2๏ธโฃ
3๏ธโฃ
Let's continue pushing the boundaries of what's possible in the world of AI and question-answering. Here's to many more innovations! ๐
Shout out to @AIMakerspace !
#LangChain #QuestionAnswering #RetrievalAugmented #Innovation #AI #TechMilestone
Feel free to reach out if you're curious or would like to collaborate on similar projects! ๐ค๐ฅ