Mastering Retrieval for LLMs - BM25, Fine-tuned Embeddings, and Re-Rankers
Offered By: Trelis Research via YouTube
Course Description
Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into an extensive video tutorial on mastering retrieval techniques for Large Language Models (LLMs). Explore various methods including BM25, fine-tuned embeddings, and re-rankers to enhance LLM performance. Begin with an overview of baseline performance without retrieval, then delve into document chunking techniques. Learn about BM25 and semantic search methods, comparing cosine and dot product similarity. Generate chunks and embeddings, and analyze the performance differences between BM25 and similarity retrieval. Discover the process of fine-tuning embeddings and encoders, including dataset preparation and training. Examine the impact of fine-tuning on performance. Investigate re-rankers, including cross-encoders and LLM re-rankers, and assess their effectiveness. Conclude with valuable tips for implementing these advanced retrieval techniques in your LLM projects.
Syllabus
Mastering Retrieval RAG for LLMs
Video Overview
Baseline Performance with No Retrieval
Document Chunking - Naive vs Sentence based
BM25
Semantic / Vector / Embeddings Search
Cosine vs Dot Product Similarity
Generating Chunks and Embeddings
Running BM25 and Similarity Retrieval
Performance with BM25 vs Similarity
Fine-tuning embeddings / encoders
Preparing fine-tuning datasets
Embeddings Training Continued
Performance after Fine-tuning
Re-rankers
: Cross-encoders
LLM re-rankers
Re-ranking performance
Final Tips
Taught by
Trelis Research
Related Courses
Building Retrieval Augmented Generation (RAG) workflows with Amazon OpenSearch ServiceAmazon Web Services via AWS Skill Builder Build a Knowledge Based System with Vertex AI Vector Search, LangChain and Gemini
Google Cloud via Coursera Prompt Compression and Query Optimization
DeepLearning.AI via Coursera Vector Search and Embeddings - Bahasa Indonesia
Google Cloud via Coursera Vector Search and Embeddings - Deutsch
Google Cloud via Coursera