Method: projects.locations.retrieval.retrieveBigQueryRecentRelevantTables

从最近访问过的表中检索 BigQuery 表引用。

HTTP 请求

POST https://geminidataanalytics.googleapis.com/v1alpha/{parent=projects/*/locations/*}/retrieval:retrieveBigQueryRecentRelevantTables

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。RetrieveBigQueryRecentTablesRequest 的父级值。模式:projects/{project}/locations/{location} 对于位置,暂时使用“global”。我们将来会支持区域位置值。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "query": string
}
字段
query

string

可选。用户以自然语言提出的查询。

响应正文

从最近访问的表中检索 BigQuery 表引用的响应。响应按与查询的语义相似度排序。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "tableIds": [
    string
  ]
}
字段
tableIds[]

string

检索到的表 ID 的列表。表的唯一标识符。名称区分大小写。BigQuery 表的示例:{project}.{dataset}.{table}

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview