RAG (Retrieval-Augmented Generation) retrieves relevant information from your data at query time and feeds it to the model as context. Fine-tuning bakes new knowledge or behavior directly into the model's weights through additional training. Most business use cases — like a chatbot that knows your company's documents — are better served by RAG: it's cheaper, faster to update, and doesn't require retraining every time your data changes.
Your documents are split into chunks and stored in a vector database. When a user asks a question, the system retrieves the most relevant chunks and passes them to the LLM along with the question, so the model answers using your actual data instead of only what it learned during training.
You train the model further on a dataset of examples specific to your use case, adjusting its internal weights. The model doesn't "look up" your data at answer time — it has internalized patterns from training, which is better suited to teaching style, tone, or a specific behavior than to teaching facts that change often.
Most production systems fine-tune for tone and task behavior, while still using RAG for up-to-date facts.
Yes — it's common in production systems to fine-tune a model for tone and task behavior, while still using RAG to feed it up-to-date, factual information at query time. Neither approach is exclusive.
Related service
AI / ML & NLP