Read the following text. A retail platform is designing a chat experience where the assistant must reference product attributes stored in a knowledge base. The team is concerned about two issues: (1) the assistant might answer using outdated attributes from earlier catalog snapshots, and (2) users might craft prompts that cause the system to retrieve irrelevant documents. To address this, they plan to attach metadata to each knowledge base record including product_id, category, and effective_date, and they intend to query only records whose effective_date is on or before the request time. They also plan to use embedding-based retrieval combined with metadata filters. Which option best implements the described “effective_date” constraint during retrieval?

Answer

Apply a metadata filter on effective_date (<= request_time) in the retriever/knowledge base query, and then let the model synthesize using only those filtered passages.

Explanation

Metadata filtering at retrieval time ensures only passages meeting the effective_date constraint are even considered by the model. Asking the model to self-correct is unreliable and still risks using outdated information in generation.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

QuestionBack to list