Agents find this context through Knowledge Catalog search, which builds on Google Search technology: it combines semantic and keyword matching, and re-ranks results with machine learning. When the agent looks up a model document, Knowledge Catalog returns the model’s metrics, including their formulas and synonyms, and the linked Lakehouse tables with their BigQuery names and schemas.
A script in the GitHub repository creates the context set, all of its documents and all nine links.
Ask Gemini Enterprise, without and with context
We connected Gemini Enterprise to BigQuery in federated query mode (Preview), which turns on the Knowledge Catalog integration automatically. We also added one sentence to the assistant instructions. In your Gemini Enterprise app, click Configurations, select the Assistant tab, select Customize under Additional LLM system instructions, enter the following sentence, and click Save and publish (see Configure the assistant):
Before writing SQL, look up the source semantic model’s own catalog entry (Snowflake or Databricks), not just the summary attached to the context set, and use its relationships and metric definitions.
Then we asked the same question twice: “What was our revenue by loyalty tier?”
Without context. First, we turned off Enable Knowledge Catalog on the same Assistant tab. The agent could still query the tables, but it couldn’t see any business definitions. It found the orders and loyalty tables and joined them, but it had to guess what revenue meant. It reported two figures: revenue from completed orders, and a “net revenue” that subtracted returned orders a second time.






