A scenario for a forward deployed engineer · Junior and up
German staff get the French policy
Anchor · The customer's sponsor
Wednesday, 10:40
A customer's HR assistant on Databricks searches one AI Search index that holds the policies of twelve countries. Staff in Germany keep getting passages from the French policy, which reads much the same.
What do you do?
Tap the one you would do. The answer opens below.
Show the best callThe best call
Pass the user's country as a filter on the query, using the country column that is already in the index.
Only German passages are returned for German staff. The answer cannot come from another country.
Why
A query to a Databricks AI Search index can carry filters on any indexed column of the source table, and only rows that match are returned. Similarity ranks by meaning, so two policies that read alike rank alike. Which country applies is a fact about the user, and a filter is where facts belong.
Read it in the Databricks docs (opens in a new tab)The other two
- Works, at a price. Build one index for each country and send each user to theirs.
- It works, with twelve indexes to create, sync and pay for, and a thirteenth for the next country.
- A poor call. Tell the model in the prompt to ignore passages from other countries.
- The French passages still fill the results, so the German ones it needs often do not arrive at all.
Go deeper on brickster.ai
- Databricks AI Search: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- Follow AI agentsNews, releases, videos and questions on it, gathered daily.
More scenarios
- The assistant made up a revenue figure · forward deployed engineer
- The price tables come out scrambled · forward deployed engineer
- The right passage comes eighth · forward deployed engineer
- All 77 scenarios
Had one like this at work? Send it to us: the best tickets come from real incidents.
Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.