Session brief
Building Blocks for LLM Systems & Products: Eugene Yan
Overview
This talk outlines essential building blocks for developing effective Large Language Model (LLM) systems and products. It emphasizes the critical role of evaluations, retrieval augmented generation, guardrails, and feedback collection in the LLM development lifecycle. The core thesis is that a structured, iterative approach focusing on these components is key to building robust and reliable LLM applications.
Who should watch
- AI Engineers
- Product Managers
- Builders working with LLMs
- Those seeking to improve LLM system reliability and product quality
- Individuals facing challenges in prompt engineering, retrieval, or ensuring factual consistency
Key takeaways
- Automated evaluations are foundational for understanding the impact of prompt engineering, retrieval augmentation, and fine-tuning, enabling faster iteration and safer deployments.
- Building task-specific evals, even starting with a small set of examples, is crucial, and simplifying tasks can improve evaluation accuracy.
- Retrieval Augmented Generation (RAG) requires careful attention to document ranking and relevance, as LLMs may struggle with context window limitations or irrelevant retrieved information.
- Guardrails, including moderation APIs and checks for factual consistency, are vital for production systems to ensure safety and trustworthiness.
- Natural Language Inference (NLI) applied at the sentence level can be an effective method for detecting factual inconsistencies in generated text.
- Collecting user feedback, both explicit and implicit, is essential for improving LLM systems and building valuable datasets for fine-tuning and evaluation.
- Leveraging existing systems and techniques from information retrieval and recommendation systems can significantly enhance RAG performance.
- User experience (UX) plays a substantial role in how effectively LLMs are integrated into workflows and how user feedback is collected.
Notable quotes
*Building evals is hard.*
*We should be measuring our apps on our tasks and not just rely on academic evals.*
*Getting the most relevant documents to rank highly still matters regardless of how big the contact size is.*
Unofficial community note. Prefer the recording for nuance.