Prompting
Videos
-
Playing loads the video from YouTube (Google), which may set cookies.
Use the “Watch on YouTube” link below to play this video.
When to Use RAG or Long Context (external link)
Use long context when the documents fit in one prompt and you need to compare them in full, such as checking which requirements are missing from release notes.
For a large knowledge base, use retrieval-augmented generation (RAG) to find relevant passages so the model reads less text for each question.
Watch on YouTube: When to Use RAG or Long Context (external link)