QuestionQ34

VerifiedData Preparation

A Generative AI Engineer is developing a RAG application that answers questions about internal documents for the company SnoPen AI.

The source documents can contain a substantial amount of irrelevant material, such as advertisements, sports news, entertainment news, or content concerning other companies.

Which approach is recommended when building a RAG application to filter irrelevant information?

Explanation

A system prompt that directs the application not to answer questions unrelated to SnoPen AI establishes a scope guardrail, reducing responses based on irrelevant retrieved material. The other approaches either retain irrelevant content without a restriction, make an unsupported assertion about the data, or use an overly broad chunking strategy.

Community Discussion

No comments yet. Be the first to start the discussion!