π Retrieval augmented generation with open source models using AWS SageMaker
π Setting up instances for storing the language model and embedding model
π Using a dataset to inform the language model
ποΈ Storing vector embeddings in Pinecone database
π‘ The retrieval augmented prompt process using query vectors
π₯οΈ Implementing the process using AWS SageMaker
π Accessing the notebook with installation instructions and importing the required libraries
π‘ The video explains how to configure the image and choose the model ID for Hugging Face language models.
π The speaker demonstrates how to search for and select the Google flan T5 XL model for text generation.
βοΈ The process of deploying the selected model to an AWS SageMaker instance is shown, including initialization and deployment steps.
π Manage spot training can be used with all instances supported in Amazon SageMaker.
π RAG (Retrieval Augmented Generation) allows finding chunks of text that can answer a question from a larger database.
π‘ Hugging Face Transformers can be used for efficient feature extraction in embedding models.
π The video explores the process of creating query vectors using embedding models and transformer models.
π‘ The embedding models generate token-level embeddings for each input sentence and use mean pooling to create a single sentence embedding.
π’ The expected dimensionality of the embeddings is 384, but the actual output dimensions are 8 due to the input tokens and padding tokens.
π We create XC vectors by taking the mean across a single axis and package it into a single function.
π We apply the XC vectors to the Amazon SageMaker FAQs dataset and store them in Pinecone.
π We initialize a connection with Pinecone using a free API key and create a new index with the dimensionality of 384.
π Creating a database index and storing metadata and embeddings for documents.
π Querying the database with a question and retrieving relevant context.
βοΈ Answering a question based on the given context.
π Retrieval augmented generation with SageMaker and Pinecone allows for the creation of an answer based on given context and prompt.
β The model is designed to respond with 'I don't know' if the context does not contain relevant information.
π‘ Using open source models and Pinecone, it is relatively easy to set up and use retrieval augmented generation with SageMaker.
Prophetic Word: Rosh Hashanah With Apostle Tomi Arayomi
Panvel: a histΓ³ria das farmΓ‘cias que jΓ‘ faturam mais de R$ 3 bi
Working With Todoist | Ep 69 | Simplifying Complex Projects
I Tried 137 Productivity Tools. These Are The Best.
AT THE THRESHOLD: Begin With the End / Judith Wolfe
6 AI Tools I Use to Boost My Productivity