Practical AI
Practical AI

Fine-tuning vs RAG

In this episode we welcome back our good friend Demetrios from the MLOps Community to discuss fine-tuning vs. retrieval augmented generation. Along the way, we also chat about OpenAI Enterprise, results from the MLOps Community LLM survey, and the orchestration and evaluation of generative AI worklo

Featured Speakers

Chris Benson Guest

Topics Discussed

Episode Summary

Executive Summary: Practical AI hosts Daniel and Chris talk with Demetrios of the MLOps Community about the shift from LLM experimentation to production use. They discuss evaluating complete systems rather than relying on model leaderboards, choosing retrieval-augmented generation (RAG) over unnecessary fine-tuning, keeping architectures simple, and the practical realities of adoption, including cost, privacy, and vendor lock-in. Demetrios also shares community events, surveys, and training plans.

Main Topics: Evaluating LLM applications and systems: The speakers argue that public benchmarks and model leaderboards rarely predict performance for a particular use case. Teams need to evaluate the full application—including prompts, retrieval, latency, factuality, and safety—and isolate which component causes failures. RAG versus fine-tuning: Demetrios cautions against fine-tuning as a default response to company-data use cases. For document question answering or writing in a particular style, RAG with relevant examples may be more suitable; fine-tuning requires carefully prepared instruction examples and is best suited to teaching new behaviors or structured outputs. Keeping the LLM stack simple: The episode describes an emerging stack of models, vector databases, orchestration SDKs, and monitoring tools, but warns that not every application needs every layer. Manual, straightforward Python logic or caching may be easier to debug and sufficient for a working product. Adoption, privacy, and vendor lock-in: Organizations often prototype quickly with OpenAI, then confront questions about privacy, legal requirements, model choice, and scaling. Startups may prioritize adding features quickly, while larger firms may have more resources and stronger incentives to control where data goes. MLOps Community research, learning, and events: Demetrios describes the community’s global meetups, LLMs in production conference, surveys of practitioners, and a new self-paced RAG course. A forthcoming evaluation survey aims to clarify the still-uncertain practices for assessing LLM applications. Lower barriers and broader participation: The speakers see LLMs making many NLP capabilities accessible to product teams and others without deep ML specialization. Demetrios emphasizes practical product-focused talks and the effort to include diverse speakers who may be busy building rather than appearing on conference circuits.

Key Arguments: A model’s leaderboard position does not guarantee that it will work best for a specific application; evaluations should reflect the actual task and assess the whole system, including safety, accuracy, and latency. RAG is often a more practical first approach for grounding responses in company documents or examples. Fine-tuning raw text does not automatically create a question-answering model; useful fine-tuning generally requires deliberate, labeled instruction-and-answer examples. Fine-tuning has real costs beyond compute: collecting, cleaning, and labeling data is difficult, and the result may not behave as intended. It is most appropriate when teaching a model a new capability or desired output format. Complexity should be earned. Vector databases and orchestration frameworks can help, but some production products work with simpler approaches such as caching, and simpler code can make failures easier to debug. Early use of a proven hosted model can help teams validate value and ship features quickly, but organizations should eventually consider privacy, legal constraints, model alternatives, and the risks of depending on one provider. LLM adoption remains constrained by practical issues such as cost, inference speed, hallucinations, and uncertain return on investment, even as the technology lowers the barrier for product teams to experiment.

Data Points: LLMs in production virtual conference: 2 days, 3 tracks per day, and over 82 speakers - Demetrios described the conference, with two main tracks and a workshop track each day. MLOps Community local chapters: 37 cities - Demetrios said the community had local meetups in 37 cities around the world. MLOps Community Slack membership: About 17,000 people - The Slack data was used in a hackathon challenge to build question-answering systems. Survey respondents reporting company LLM use: 61% - Daniel cited this figure from the community survey; the discussion noted the respondents were a technology-oriented population. Upcoming LLMs in production conference: October 3 - Demetrios announced the next conference and described its focus on practical and product-oriented LLM topics. Hackathon evaluation set: 100 questions - Participants’ LLM systems were evaluated on the accuracy of their answers to questions drawing on Slack material and general ML topics.

Pivotal Quotes: "The LLM here is not your application." — Chris Benson: He stressed that prompts, retrieval, orchestration, monitoring, and validation all contribute to an LLM product’s behavior. "What you want to fine-tune for, for that case, let's just be clear, that's where retrieval augmented generation shines." — Demetrios: He contrasted using retrieved examples for style or company-specific information with the cost and complexity of fine-tuning. "Just keep it simple." — Demetrios: He summarized the case for avoiding unnecessary infrastructure and choosing the simplest stack that meets the use case.

Implications: Teams should start with a clearly defined use case, evaluate the complete application, and favor the simplest effective approach. RAG is often a practical first step for document-grounded responses; fine-tuning should be reserved for well-defined needs with suitable training data. Rapid prototyping should be balanced with privacy, cost, and provider-dependence concerns.

🔓 Sign Up for Unlimited Episode Search

About Practical AI

View all episodes from Practical AI