What is a recommended practice to prevent the LLM from generating information not present in the retrieved context when building a RAG application?
This instruction directly constrains the model to the context.
Why this answer
Including a system message that explicitly instructs the model to rely only on the provided context reduces the likelihood of hallucination.