Skip to content

Commit 3021266

Browse files
hmchen-githubcopybara-github
authored andcommitted
docs: Update BigQuery samples README
Add the new analyze_contribution tool and renumbering as the Github cannot display it correctly. PiperOrigin-RevId: 816517893
1 parent 3f2b457 commit 3021266

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

contributing/samples/bigquery/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ distributed via the `google.adk.tools.bigquery` module. These tools include:
99

1010
Fetches BigQuery dataset ids present in a GCP project.
1111

12-
1. `get_dataset_info`
12+
2. `get_dataset_info`
1313

1414
Fetches metadata about a BigQuery dataset.
1515

16-
1. `list_table_ids`
16+
3. `list_table_ids`
1717

1818
Fetches table ids present in a BigQuery dataset.
1919

20-
1. `get_table_info`
20+
4. `get_table_info`
2121

2222
Fetches metadata about a BigQuery table.
2323

24-
1. `execute_sql`
24+
5. `execute_sql`
2525

2626
Runs or dry-runs a SQL query in BigQuery.
2727

28-
1. `ask_data_insights`
28+
6. `ask_data_insights`
2929

3030
Natural language-in, natural language-out tool that answers questions
3131
about structured data in BigQuery. Provides a one-stop solution for generating
@@ -35,11 +35,17 @@ distributed via the `google.adk.tools.bigquery` module. These tools include:
3535
the official [Conversational Analytics API documentation](https://cloud.google.com/gemini/docs/conversational-analytics-api/overview)
3636
for instructions.
3737

38-
1. `forecast`
38+
7. `forecast`
3939

4040
Perform time series forecasting using BigQuery's `AI.FORECAST` function,
4141
leveraging the TimesFM 2.0 model.
4242

43+
8. `analyze_contribution`
44+
45+
Perform contribution analysis in BigQuery by creating a temporary
46+
`CONTRIBUTION_ANALYSIS` model and then querying it with
47+
`ML.GET_INSIGHTS` to find top contributors for a given metric.
48+
4349
## How to use
4450

4551
Set up environment variables in your `.env` file for using

0 commit comments

Comments
 (0)