WhoBuilt

RAG for VPs of AI

Dec 31, 2024· 27 min· 6.0K views·Watch on YouTube

Speaker

Jerry Liu, co-founder and CEO of LlamaIndex, discusses enterprise RAG and LlamaIndex’s products at an AI Engineer session, followed by audience questions.

Why RAG is hard to productionize

Liu describes RAG as a way to answer questions over enterprise data using an LLM, embeddings, and storage such as a document, graph, SQL, or vector database. He says a basic pipeline can be prototyped quickly, but production quality is harder as document volume, complexity, and data sources grow. Accuracy, tuning, and data silos become major challenges.

Data quality and developer tooling

Liu argues that poor data quality can lead to hallucinations, even when the underlying model is strong. He recommends giving developers tools to adapt as models and workflows change, rather than relying only on fixed out-of-the-box products. LlamaIndex’s open-source toolkit focuses on retrieval, prompting, agents, and tool use, while LlamaCloud manages data processing and pipelines.

Parsing documents for reliable answers

Liu presents LlamaParse as a tool for extracting usable structure from complex reports, PowerPoints, tables, and diagrams. He says faithful layout matters: a basic PDF parser can collapse table text and numbers, making answers less reliable. He reports half a million monthly client SDK downloads and tens of millions of pages processed.

Building retrieval pipelines requires evaluation

In response to a question about traditional ETL, Liu explains that RAG work involves parsing, semantically chunking, adding metadata, and choosing an index. Splitting every 1,024 tokens can break tables or sections across pages. He says teams need evaluation data and end-to-end testing to determine whether pipeline choices work.

How RAG may change

Liu expects longer context windows and multimodal models to change retrieval design. Larger chunks or even whole-document indexing may become practical, but retrieval will still matter for large collections because sending everything to a model is costly and limits transparency. He also sees value in storing both parsed text and page images, since text extraction loses some information.

Takeaways

  • Treat parsing and data quality as core parts of an AI application, since errors there can surface as hallucinations.
  • Evaluate RAG pipelines end to end before tuning chunk sizes, metadata, or indexes.
  • Use separate processing pipelines for diverse data sources, then combine and rerank their results.
  • Plan for retrieval to remain useful at enterprise scale, even as model context windows grow.
  • For natural conversations, tune the agent’s reasoning, prompts, and memory alongside retrieval.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks