Skip to main content

The Real Problem with RAG: Retrieval, Not Generation | Hamish Ogilvy

Jason LiuAugust 19, 202555 min437 views
34 connections·40 entities in this video→

The Core of RAG: Retrieval is Key

  • πŸ’‘ The common notion that RAG is dead is false; the real challenge lies in the retrieval component, not generation.
  • 🧠 Foundational models like GPT-4 handle generation effectively, making retrieval the primary area of control and innovation for developers.
  • πŸš€ Hamish Ogilvy, VP of AI at Algolia, emphasizes improving the 'R' in RAG, drawing from his decade of experience in information retrieval.

Algolia's Scale and Approach to Search

  • πŸ“Š Algolia handles 5 billion queries and 1 billion events daily, processing 30,000 AI model inferences per second across 1500 clusters.
  • ⚠️ This scale necessitates different considerations than prototyping, where cost and production deployment are high priorities.
  • πŸ” Algolia's proprietary tiebreaker relevance and neural hashes for vector search are highlighted as superior to traditional methods like BM25.
  • βš™οΈ The company prioritizes high availability (59 SLA) and robust infrastructure, including private data centers and extensive AI/ML teams.

Iteration and Composability for Faster Improvement

  • ⚑ Composability is crucial, allowing teams to define and test new algorithms using an internal query language without full deployments.
  • ⏱️ This enables rapid iteration, with the ability to create new algorithms in seconds and validate them in minutes through simulations and backtesting.
  • πŸ§‘β€πŸ’» Non-engineers, such as CSMs and Product Managers, can experiment with algorithms, decoupling feature teams from the slower production deployment cycle.
  • πŸ“ˆ Simulations use historical or synthetic data to replay queries and measure performance gains before production deployment.

Applying Composability to RAG and Query Rewriting

  • 🧩 For RAG, composability allows for integrating vector search results into prompts for generative models like GPT-4 Mini.
  • πŸ“ The system can also be used for dynamic query planning, such as rewriting queries to improve results when initial searches yield zero or irrelevant outcomes.
  • πŸ”„ Examples include rewriting "iPhone for my friend" to "smartphone for the elderly" to better match user intent and retrieve more relevant information.

The Future of AI in Search and Retrieval

  • πŸ€– The ultimate goal is for AI to write search algorithms, enabling automated discovery of new, successful approaches.
  • πŸ”— Future developments include integrating external systems and tools directly into workflows for enhanced retrieval capabilities.
  • βš–οΈ A key takeaway is that all advancements in search and AI involve significant trade-offs, particularly concerning cost, latency, and effectiveness, which practitioners must carefully consider.
Knowledge graph40 entities Β· 34 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
40 entities
Chapters19 moments

Key Moments

Transcript204 segments

Full Transcript

Topics15 themes

What’s Discussed

Retrieval Augmented Generation (RAG)Information RetrievalAlgoliaVector SearchKeyword SearchHybrid SearchAI Model InferencesComposabilityDynamic Query PlanningQuery RewritingLLM JudgmentsSynthetic Data GenerationMachine LearningArtificial IntelligenceSearch Algorithms
Smart Objects40 Β· 34 links
CompaniesΒ· 4
PeopleΒ· 2
ConceptsΒ· 28
ProductΒ· 1
LocationΒ· 1
MediasΒ· 4