in retail/recommendation-system/bqml-scann/index_server/main.py [0:0]
def validate_request(query, show):
is_valid = True
error = ''
if not query:
is_valid = False
error = 'You need to provide the item Id(s) in the query!'
return is_valid, error