gcloud beta developer-knowledge answer-query

NAME
gcloud beta developer-knowledge answer-query - answer a natural language query using grounded generation
SYNOPSIS
gcloud beta developer-knowledge answer-query --query=QUERY [--query-filter=QUERY_FILTER] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Answer a natural language query using grounded generation based on the Developer Knowledge corpus.
EXAMPLES
To answer a question using grounded generation:
gcloud beta developer-knowledge answer-query --query="What is the difference between a global and regional load balancer?"

To answer a question with corpus filtering:

gcloud beta developer-knowledge answer-query --query="How do I deploy a Cloud Run function?" --query-filter='data_source = "docs.cloud.google.com"'
REQUIRED FLAGS
--query=QUERY
The query to answer.
OPTIONAL FLAGS
--query-filter=QUERY_FILTER
Apply a strict filter to the search results used to ground the answer. Supported filter fields: content_length_bytes, data_source, update_time, uri. Example: data_source = "docs.cloud.google.com".
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

API REFERENCE
This command uses the developerknowledge/v1 API. The full documentation for this API can be found at: https://developers.google.com/knowledge
GUIDANCE
Use answer-query to get synthesized natural language answers with source citations.
NOTES
This command is currently in beta and might change without notice. This variant is also available:
gcloud alpha developer-knowledge answer-query