Writing LookML for Agents and Conversational Analytics

@Jose_Maldonado, I notice that it is now possible to add golden queries to a data agent via the UI (aka verified queries), rather than manually writing a golden queries section in the data agent’s instructions.

Are there any benefits to using verified queries versus defining these in the agent instructions text box?

  1. The documentation refers to entering a ‘natural language question’ in the singular, and the text box for entering the question is small. Do we infer from this that we’re only supposed to enter one natural language question per query? This would seem pretty limited, as different users refer to the same thing in multiple ways (I typically include about 7-8 natural language variations for each Looker query).

  2. Are there any performance benefits to using verified queries versus defining these in the agent instructions (i.e. does it reduce token consumption)? Another limitation is that there is no opportunity to add any context around each verified query. For example, I’ve had success with explicitly telling the agent what it is supposed to infer from a golden query (e.g. “Note: this template applies to ANY entity (e.g. country, genre, supplier). You should dynamically swap the dimension view_name.field_name in the fields list with the entity requested by the user. Keep all other measures and filters identical.”). But additional text consumes tokens / eats into the context window, so I would maybe accept that loss if you said it was a more performant way of feeding the agent additional context.