Super charge your LLMs with RAG at scale using AWS Glue for Apache Spark
Machine Learning Blog
This article discusses how to supercharge large language models (LLMs) with Retrieval Augmented Generation (RAG) at scale using AWS Glue for Apache Spark. RAG helps optimize LLM output by referencing external authoritative knowledge bases before generating responses.
Specifically, the article covers:
- Data preprocessing for RAG, including cleaning, chunking, and embedding documents
- Solution overview using LangChain, AWS Glue, Apache Spark, Amazon SageMaker JumpStart, and Amazon OpenSearch Serverless
- Setting up a vector store with Amazon OpenSearch Serverless
- Preparing documents by parsing HTML, chunking, and embedding
- Demonstrating question-answering using the ingested embeddings and an LLM
- Cleanup of resources
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Dec 4
2024
2024
Introducing AWS Glue 5.0 for Apache Spark
Nov 22
2024
2024
Introducing generative AI upgrades for Apache Spark in AWS Glue (preview)
Nov 22
2024
2024
Introducing generative AI troubleshooting for Apache Spark in AWS Glue (preview)
Nov 22
2024
2024
Announcing generative AI troubleshooting for Apache Spark in AWS Glue (Preview)
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.