Making LLMs Smarter
Finetuning, RAG, and Embeddings — three ways to adapt a model for specific tasks
Finetuning
Build a training dataset and see how the model specializes.
Finetuning adapts a model's behavior using example input/output pairs. Build a small dataset below and see how it changes the model's responses. (This demo simulates finetuning via few-shot prompting.)
Training dataset (3 examples)
Input: What is your return policy?
Output: We offer a 30-day money-back guarantee on all products. Simply contact our support team to initiate a return.
Input: How long does shipping take?
Output: Standard shipping takes 3-5 business days. Express shipping is available for next-day delivery at an additional cost.
Input: Do you offer gift wrapping?
Output: Yes! We offer complimentary gift wrapping on all orders. Just select the gift wrap option at checkout.
RAG — Retrieval-Augmented Generation
Compare two approaches: no context vs. RAG context.
Embeddings & Vector Similarity
Visualize how texts are converted into numerical vectors and compared.