Stop Thinking, Just Do!

Sungsoo Kim's Blog

Prompt Engineering, RAG, and Fine-tuning

tagsTags

11 April 2024


Article Source


Prompt Engineering, RAG, and Fine-tuning

Abstract

Prompt engineering is a powerful tool to steer a large language model’s behavior by providing instructions and examples directly in the prompt. RAG, a type of knowledge retrieval, grounds the model’s responses to reality by pulling in dynamic and trusted external data sources. Fine tuning trains the model on your own examples to narrow and customize its outputs.

Each approach has its strengths. Prompt engineering is fast and intuitive, while RAG connects real-time data. Fine-tuning bakes in your style, tone, and formatting. The good news is they can all work together! Use prompt engineering to rapidly prototype, RAG to leverage your knowledge base, and fine-tuning to improve speed, cost, and quality.

In this video, Mark Hennings explains the unique value of each technique and shows how you can combine them for the best of all worlds. See examples of few-shot learning prompts and how they can be upgraded with fine-tuning datasets. Learn the specific fine-tuning strategies for optimizing cost, speed and quality.

There’s something for everyone here. Whether you have experience with machine learning or just starting out with AI, this video will expand your understanding and give you ideas for improving your generative AI projects.


comments powered by Disqus