Warranty assistant cites another country's warranty terms

GenAI Engineer Application Development Medium Question 25 of 45

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?

Show answer and explanation

CA 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.

Source: docs.databricks.com/aws/en/ai-search/retrieval-quality

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 45 original GenAI Engineer practice questions