Common questions this module answers
What is retrieval-augmented generation (RAG)?
RAG retrieves relevant documents from your own data using embedding similarity, pastes them into the model's prompt as context, and instructs the model to answer only from that context — grounding answers in facts the model was never trained on.
When should I use RAG instead of fine-tuning?
Use RAG for knowledge that changes (your docs, recent data) and when you need citations. Use fine-tuning for style, format and behavior. Many production systems combine both.
What chunk size should I use for RAG?
A common starting point is 200–400 tokens with 10–20% overlap. Too-small chunks lose surrounding context; too-large chunks dilute the relevant passage and waste context window.