Code Monkey home page Code Monkey logo

langchain_with_os_llm_and_langsmith's Introduction

Week 5: Thursday

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 ๐Ÿ—๏ธ

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:

image

Create a "+ New Endpoint" from the Inference Endpoints dashboard.

image

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.

image

Create a Protected endpoint.

image

If you were successful, you should see the following screen:

image

You'll repeat the same process for your embeddings model!

NOTE: PLEASE SHUTDOWN YOUR INSTANCES WHEN YOU HAVE COMPLETED THE ASSIGNMENT TO PREVENT UNESSECARY CHARGES.

Build Task 2: Create RAG Pipeline with LangChain & LangSmith

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:

    1. Set up Hugging Face Inference Endpoints
    2. Install required libraries
    3. Set Environment Variables
    4. Testing our Hugging Face Inference Endpoint
    5. Creating LangChain components powered by the endpoints
    6. Retrieving data from Arxiv
    7. Creating a simple RAG pipeline with LangChain v0.1.0
  • ๐Ÿค Breakout Room #2:

    1. Set-up LangSmith
    2. Creating a LangSmith dataset
    3. Creating a custom evaluator
    4. Initializing our evaluator config
    5. Evaluating our RAG pipeline

The Colab link is provided here

Terminating Your Resources

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.

Deliverables

  • Completed Notebook
  • Screenshot of endpoint usage

Example Screen Shot:

image

Ship ๐Ÿšข

Create a Hugging Face Space powered by a SageMaker Endpoint!

Deliverables

  • A short Loom of the space, and a 1min. walkthrough of the application in full

Share ๐Ÿš€

Make a social media post about your final application!

Deliverables

  • 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! ๐Ÿค๐Ÿ”ฅ

NOTE: PLEASE SHUTDOWN YOUR INSTANCES WHEN YOU HAVE COMPLETED THE ASSIGNMENT TO PREVENT UNESSECARY CHARGES.

langchain_with_os_llm_and_langsmith's People

Contributors

markat1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.