I'm building a API GPT bot that performs queries on a database. One of the tables is the clients table, which has "name" and "business_name" columns. The issue I'm facing is that names can partially overlap. For example, I could have "Martin Smith," "Martin Doe," and even "Martina White." If I ask for the budgets of client Martin, I shouldn't search with an "equals," but rather with a "LIKE," which could return all three.
My question is: What is the best way to handle these situations? Is there a standard approach for disambiguating such results, or should I simply handle it by checking when multiple results are returned? Additionally, should the bot ask for clarification before executing the query (doing a kind of pre-query) instead of running the query directly?