Hi Siddharth,
1. Token limit per agent
There is one, but the docs don't publish a number. Per the troubleshooting page, when an agent gets close to the limit a warning appears and Genie starts context filtering, keeping the tokens it thinks are most relevant to the question. Answer quality can drop if something important gets filtered out. Once the limit is exceeded, you can't send or receive messages in that agent anymore.
Instructions and metadata are what get turned into tokens. The levers the docs point to: hide columns you don't need, use views that drop redundant fields, shorten column descriptions that just repeat the column name, and remove overlapping example SQL.
The limits that are documented per agent:
- 100 instructions (each example SQL query, each SQL function, and the whole General instructions block count as one each)
- 200 knowledge store snippets (table descriptions, join relationships and SQL expressions share this)
- 50 tables, views or metric views, with five or fewer recommended
- Entity matching on up to 120 columns, 1,024 values per column, 127 characters per value
2. Metric view description
The YAML reference doesn't list a character limit for comment, either at the top level or on dimensions and measures. The documented limits are on display_name (255 characters) and synonyms (up to 10, 255 characters each), both on YAML spec 1.1. Descriptions are also metadata Genie turns into tokens, so a very long comment eats into the budget from point 1.
Docs:
Troubleshoot Genie Agents: https://docs.databricks.com/aws/en/genie-agents/troubleshooting
Tune Genie Agent quality (instruction and snippet limits): https://learn.microsoft.com/en-us/azure/databricks/genie-agents/tune-quality
Genie best practices (table limit): https://docs.databricks.com/aws/en/genie-agents/best-practices
Metric view semantic metadata: https://docs.databricks.com/aws/en/metric-views/semantic-metadata
Thomaz A. Rossito Neto
Principal Data Architect & AI Strategy โ CI&T
thomazn@ciandt.com
linkedin.com/in/thomaz-antonio-rossito-neto | Databricks Solutions Architect Champion