GenAI Engineer Application Development MEDIUM
PRODUCTION SCENARIO
A Generative AI Engineer maintains a warranty assistant covering 11 countries. Each request carries the customer's country as metadata, but the AI Search query ignores it, so answers frequently cite another country's warranty terms.

What should the engineer add to the retrieval call?

Answering here is anonymous. Nothing is saved unless you sign in.

Show answer and explanation

Answer: A filters clause restricting the query to the customer's country

A filters clause restricts the query to rows matching a condition such as country, and filtering dramatically reduces the search space while improving both precision and recall. Hybrid scoring only helps when the country appears in the query text, and here it arrives as request metadata the user never typed. Prompting the model after retrieval cannot repair context that is already wrong, and eleven separate indexes multiply the maintenance a single clause handles without being part of the retrieval call.
Free

Keep practicing GenAI Engineer

45 original GenAI Engineer practice questions, each with an explanation and a source link. No account needed.

Start free practice set → Timed, explained, free