Optimized RAG: Strategies for Cost and Scale
summary
Shows a concrete pipeline and runnable lab using Python, Google Colab, Elasticsearch and Hugging Face models to cut RAG cost and latency. Recommends embedding quantization (Elastic’s BBQ drops 100M vectors from ~409 GB to ~14 GB in their numbers) plus dimension/int8 options, filtered search and context highlighting to send far fewer tokens to the LM, and lightweight rerankers like Reciprocal Rank Fusion; reports binary-quantized recall matching float at ~3 ms.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:08RAG scaling challenges
- 3:14The RAG dream reality
- 5:46Cost latency relevance monster
- 9:16Optimizing RAG pipelines
- 13:10Three phases of RAG
- 15:39Indexing phase strategies
- 20:37Embedding quantization
- 21:42ANN algorithm choices
- 35:39Retrieval phase optimization
- 41:56Non-model ranking approaches
- 44:08Result highlighting
- 49:00Generation phase optimizations
- 50:02Smart caching techniques
- 52:52Observability in RAG
- 55:01Summary and Q&A
