GenerativeModel
class to generate content based on input parameters. Here’s a step-by-step breakdown of its operation:
PROJECT
and REGION
environment variables to be set for connecting to the Vertex AI services.
generate_looker_query
function, which accepts a natural language query (contents
) and optional parameters (parameters
) to customize the AI generation process.
temperature
, max_output_tokens
, top_p
, top_k
) which can be overridden by the request’s parameters.
POST
requests to the main endpoint, where it expects a JSON payload with contents
and optional parameters
.