You are asked to design a retrieval-augmented generation (RAG) pipeline for a knowledge base with frequent schema changes. Which strategy best reduces the risk of retrieval returning irrelevant snippets that still appear “plausible” to the language model?

Answer

Add metadata-aware filtering and re-ranking, and verify the cited spans with explicit relevance checks before generation.

Explanation

Metadata filtering and re-ranking reduce semantically similar but contextually wrong matches; span verification prevents the model from drafting fluent yet unsupported answers.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list