<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Genie Space Token Limit &amp;amp; Metric View Description in Lakebase Discussions</title>
    <link>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175398#M153</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get clarity around 2 things related to Genie Agents/Spaces-&lt;/P&gt;&lt;P&gt;1. Is their any token limit defined for each space?&lt;/P&gt;&lt;P&gt;2. How much is the character limit for description section within any Metric View?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2026 19:19:09 GMT</pubDate>
    <dc:creator>SiddharthMadan</dc:creator>
    <dc:date>2026-11-02T19:19:09Z</dc:date>
    <item>
      <title>Genie Space Token Limit &amp; Metric View Description</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175398#M153</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get clarity around 2 things related to Genie Agents/Spaces-&lt;/P&gt;&lt;P&gt;1. Is their any token limit defined for each space?&lt;/P&gt;&lt;P&gt;2. How much is the character limit for description section within any Metric View?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 19:19:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175398#M153</guid>
      <dc:creator>SiddharthMadan</dc:creator>
      <dc:date>2026-11-02T19:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Space Token Limit &amp; Metric View Description</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175405#M156</link>
      <description>&lt;P&gt;Hi Siddharth,&lt;/P&gt;&lt;P&gt;1. Token limit per agent&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The limits that are documented per agent:&lt;BR /&gt;- 100 instructions (each example SQL query, each SQL function, and the whole General instructions block count as one each)&lt;BR /&gt;- 200 knowledge store snippets (table descriptions, join relationships and SQL expressions share this)&lt;BR /&gt;- 50 tables, views or metric views, with five or fewer recommended&lt;BR /&gt;- Entity matching on up to 120 columns, 1,024 values per column, 127 characters per value&lt;/P&gt;&lt;P&gt;2. Metric view description&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Docs:&lt;BR /&gt;Troubleshoot Genie Agents: &lt;A href="https://docs.databricks.com/aws/en/genie-agents/troubleshooting" target="_blank"&gt;https://docs.databricks.com/aws/en/genie-agents/troubleshooting&lt;/A&gt;&lt;BR /&gt;Tune Genie Agent quality (instruction and snippet limits): &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/genie-agents/tune-quality" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/genie-agents/tune-quality&lt;/A&gt;&lt;BR /&gt;Genie best practices (table limit): &lt;A href="https://docs.databricks.com/aws/en/genie-agents/best-practices" target="_blank"&gt;https://docs.databricks.com/aws/en/genie-agents/best-practices&lt;/A&gt;&lt;BR /&gt;Metric view semantic metadata: &lt;A href="https://docs.databricks.com/aws/en/metric-views/semantic-metadata" target="_blank"&gt;https://docs.databricks.com/aws/en/metric-views/semantic-metadata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 21:53:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175405#M156</guid>
      <dc:creator>ThomazNeto</dc:creator>
      <dc:date>2026-11-02T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Space Token Limit &amp; Metric View Description</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175416#M158</link>
      <description>&lt;P&gt;Genie Space token limits - An overall token limit does exist, but the token value is not documented. All curated instructions and associated metadata get tokenized into the space's prompt context. If you approach the limit, the UI shows a warning and exceeding it blocks from sending or receiving further messages. This threshold is tied to the context window of the underlying Foundation Model the agent uses (Databricks manages and tunes it). The operational quotas Databricks documents are architectural - a cap of &lt;STRONG&gt;100 instructions&lt;/STRONG&gt; and &lt;STRONG&gt;200 knowledge snippets&lt;/STRONG&gt; per agent. More details &lt;A href="https://docs.databricks.com/aws/en/genie-agents/tune-quality/#-add-sql-examples-and-instructions" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the Metric View description limit, there are no documented limits. In the metric view definition, this field maps to the comment property in the YAML configuration. If you run into an explicit validation error, truncation or save failure when publishing a long description, share the error trace and the length of the string to isolate whether it is getting blocked at the YAML parser or UI layer.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2026 05:52:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/175416#M158</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-11-03T05:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Space Token Limit &amp; Metric View Description</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/176762#M163</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/266348"&gt;@SiddharthMadan&lt;/a&gt;, I took a look at both internal and external documentation and here is what I found.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/245135"&gt;@ThomazNeto&lt;/a&gt; and &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/210897"&gt;@balajij8&lt;/a&gt; have both questions right, so I'll confirm and add a few practical points.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Token limit&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There is one, and Databricks doesn't publish the number. Near the limit you get a warning and Genie starts filtering context, which can cost you answer quality. Past it, the agent stops sending and receiving messages.&lt;/P&gt;
&lt;P&gt;The documented per-agent limits are the ones Thomaz listed: 50 tables, views, or metric views (five or fewer recommended), 100 instructions, and 200 knowledge store snippets. Column descriptions, example SQL, and text instructions don't count toward the 200, but they all still use tokens.&lt;/P&gt;
&lt;P&gt;If the warning shows up, trim in this order:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove tables and views the agent doesn't need.&lt;/LI&gt;
&lt;LI&gt;Hide technical, audit, and duplicate columns. Hiding takes a column out of Genie's context. It isn't a security control.&lt;/LI&gt;
&lt;LI&gt;Swap wide raw tables for narrower views or metric views.&lt;/LI&gt;
&lt;LI&gt;Shorten descriptions that repeat the column name, and drop overlapping example SQL.&lt;/LI&gt;
&lt;LI&gt;Move repeated business logic out of text instructions and into measures or SQL expressions.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Metric view description&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There's no documented character limit on &lt;CODE&gt;comment&lt;/CODE&gt;, at the view level or on fields (dimensions) and measures. The documented caps are &lt;CODE&gt;display_name&lt;/CODE&gt; at 255 characters and &lt;CODE&gt;synonyms&lt;/CODE&gt; at up to 10 per field, 255 characters each.&lt;/P&gt;
&lt;P&gt;I haven't tested where a very long comment breaks, so I won't quote a number. If you need a firm one for governance or automation, ask your account team or open a support ticket, since undocumented limits can change between releases.&lt;/P&gt;
&lt;P&gt;Three things to watch:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;comment&lt;/CODE&gt; and &lt;CODE&gt;#&lt;/CODE&gt; aren't the same. &lt;CODE&gt;comment&lt;/CODE&gt; is stored in Unity Catalog and read by Genie. A &lt;CODE&gt;#&lt;/CODE&gt; line is a YAML source comment, not Unity Catalog metadata.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;ALTER VIEW&lt;/CODE&gt; from a notebook or the SQL editor removes Unity Catalog comments unless they're in the YAML &lt;CODE&gt;comment&lt;/CODE&gt; fields, so keep your descriptions in the YAML.&lt;/LI&gt;
&lt;LI&gt;The 16,384-byte limit in the Genie API applies to the agent's own description, not to metric view comments.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;At the end of the day, the token budget will stop you long before any field length does. Keep each description to the business meaning (definition, grain, exclusions, unit), put the calculation in the measure expression, and use synonyms for the words people actually type.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;References&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Troubleshoot Genie Agents (token limit warning): &lt;A href="https://docs.databricks.com/aws/en/genie-agents/troubleshooting#token-limit-warning" target="_blank"&gt;https://docs.databricks.com/aws/en/genie-agents/troubleshooting#token-limit-warning&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Tune Genie Agent quality: &lt;A href="https://docs.databricks.com/aws/en/genie-agents/tune-quality" target="_blank"&gt;https://docs.databricks.com/aws/en/genie-agents/tune-quality&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Curate an effective Genie Agent: &lt;A href="https://docs.databricks.com/aws/en/genie-agents/best-practices" target="_blank"&gt;https://docs.databricks.com/aws/en/genie-agents/best-practices&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Metric view YAML syntax reference: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference" target="_blank"&gt;https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Agent metadata in metric views: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/agent-metadata" target="_blank"&gt;https://docs.databricks.com/aws/en/uc-semantics/agent-metadata&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Genie Space API reference: &lt;A href="https://docs.databricks.com/api/genie/v1/genie-space" target="_blank"&gt;https://docs.databricks.com/api/genie/v1/genie-space&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you found this answer helpful please check off "Accept as Solutions" so that others can have confidence in the answer.&lt;/P&gt;
&lt;P&gt;Regards, Louis.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2026 12:37:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/genie-space-token-limit-amp-metric-view-description/m-p/176762#M163</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2026-11-18T12:37:19Z</dc:date>
    </item>
  </channel>
</rss>

