Niels Bantilan
Chief ML Engineer at Union.ai
Niels is the Chief Machine Learning Engineer at Union, a core maintainer of Flyte, an open source workflow orchestration tool, and creator of Pandera, a data validation and testing tool for dataframes. His mission is to help data science and machine learning practitioners be more productive. He has a Masters in Public Health Informatics, and prior to that a background in developmental biology and immunology. His research interests include reinforcement learning, NLP, ML in creative applications, and fairness, accountability, and transparency in automated systems.
All Sessions by Niels Bantilan
LLMOps Infrastructure for Production-grade RAG Applications
<span class="etn-schedule-location"> <span class="firstfocus">LLMOPs</span> <span class="etn-schedule-location"> <span class="firstfocus">Data Engineering</span> <span class="secfocus">Intermediate-Advanced</span> </span>So you’ve built and deployed a RAG proof-of-concept at your organization with an off-the-shelf framework in a few days, and it looks like it’s working… now what? Just as in previous generations of AI and ML, the journey of a RAG application doesn’t end once you’ve deployed a model: it requires constant iteration to maintain and improve its performance. Unlike traditional ML deployments, however, AI applications like RAG involve more complex operational and infrastructure requirements such as maintaining pipeline logic, vector stores, evaluation datasets, and LLM model hosting. In this workshop, you’ll learn what it takes to maintain and iterate on RAG applications from prototype to production by building a chat assistant using the Union orchestrator. The workshop is structured in three parts: - Creating a baseline RAG application: In this section, we’ll look at the anatomy of a basic RAG pipeline and understand what building blocks you need to build robust and reliable AI applications. This includes container-native DAGs, built-in type-safety and data validation, versioning and management of vector stores and models, and reusable container environments. - Using LLM-as-a-judge to bootstrap an evaluation dataset: In this section, we’ll build an evaluation dataset using an LLM so that we can begin to iterate on and improve on the baseline pipeline. Here we’ll learn how to use an LLM to create synthetic questions based on ground truth documents and assess the resulting Q&A pairs using a critic LLM. We’ll also introduce a human-in-the-loop element to manually check samples of the synthetic evaluation dataset so that we can create few-shot examples of Q&A judgements to help the critic assess synthetic data. - Hyperparameter optimization: Using the evaluation dataset, we will perform hyperparameter optimization, which in this case are parameters like the generation prompt, text chunking procedure, and top-k value for retrieving documents. Using well-established train/test validation techniques from traditional hyperparameter optimization, we can escape “vibe-based” pipeline evaluation and instead improve RAG performance more objectively. Attendees will take away the core concepts and techniques required to systematically improve their RAG applications while adopting best software engineering practices.
LLMOps Infrastructure for Production-grade RAG Applications
<span class="etn-schedule-location"> <span class="firstfocus">LLMOPs</span> <span class="etn-schedule-location"> <span class="firstfocus">Data Engineering</span> <span class="secfocus">Intermediate-Advanced</span> </span>So you’ve built and deployed a RAG proof-of-concept at your organization with an off-the-shelf framework in a few days, and it looks like it’s working… now what? Just as in previous generations of AI and ML, the journey of a RAG application doesn’t end once you’ve deployed a model: it requires constant iteration to maintain and improve its performance. Unlike traditional ML deployments, however, AI applications like RAG involve more complex operational and infrastructure requirements such as maintaining pipeline logic, vector stores, evaluation datasets, and LLM model hosting. In this workshop, you’ll learn what it takes to maintain and iterate on RAG applications from prototype to production by building a chat assistant using the Union orchestrator. The workshop is structured in three parts: - Creating a baseline RAG application: In this section, we’ll look at the anatomy of a basic RAG pipeline and understand what building blocks you need to build robust and reliable AI applications. This includes container-native DAGs, built-in type-safety and data validation, versioning and management of vector stores and models, and reusable container environments. - Using LLM-as-a-judge to bootstrap an evaluation dataset: In this section, we’ll build an evaluation dataset using an LLM so that we can begin to iterate on and improve on the baseline pipeline. Here we’ll learn how to use an LLM to create synthetic questions based on ground truth documents and assess the resulting Q&A pairs using a critic LLM. We’ll also introduce a human-in-the-loop element to manually check samples of the synthetic evaluation dataset so that we can create few-shot examples of Q&A judgements to help the critic assess synthetic data. - Hyperparameter optimization: Using the evaluation dataset, we will perform hyperparameter optimization, which in this case are parameters like the generation prompt, text chunking procedure, and top-k value for retrieving documents. Using well-established train/test validation techniques from traditional hyperparameter optimization, we can escape “vibe-based” pipeline evaluation and instead improve RAG performance more objectively. Attendees will take away the core concepts and techniques required to systematically improve their RAG applications while adopting best software engineering practices.
