<?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 Improving Genie Space via text instructions in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/improving-genie-space-via-text-instructions/m-p/157176#M1811</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm trying to improve my Genie Space with some text instructions but very often Genie does not use it. If I prompt "Why have you not considered my instructions" after he answered a question he realizes that he forgot it. But this is too late &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are two versions of my text instruction focussing on on disambiguation:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version 1&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;...&lt;BR /&gt;&lt;BR /&gt;#&amp;nbsp;disambiguation&lt;BR /&gt;&lt;/FONT&gt;Ask user a clarification questions when user asks for "weight" or "volume". Do NOT assume which column to use. Do not generate SQL or provide an answer until the ambiguity is resolved.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Version 2&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;...&lt;BR /&gt;&lt;BR /&gt;#&amp;nbsp;disambiguation&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;When multiple columns could match the user's intent, always ask a clarification question before generating a query. Do not generate SQL or provide an answer until the ambiguity is resolved.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Sometimes it works, sometimes not. Please note that I have some other text instructions above those definitions.&lt;/P&gt;&lt;P&gt;Besides I found an article stating that "&lt;EM&gt;General Instructions Must Be ≤20 Lines&lt;/EM&gt;" !?&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2026 13:11:47 GMT</pubDate>
    <dc:creator>michael365</dc:creator>
    <dc:date>2026-05-18T13:11:47Z</dc:date>
    <item>
      <title>Improving Genie Space via text instructions</title>
      <link>https://community.databricks.com/t5/generative-ai/improving-genie-space-via-text-instructions/m-p/157176#M1811</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm trying to improve my Genie Space with some text instructions but very often Genie does not use it. If I prompt "Why have you not considered my instructions" after he answered a question he realizes that he forgot it. But this is too late &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are two versions of my text instruction focussing on on disambiguation:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version 1&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;...&lt;BR /&gt;&lt;BR /&gt;#&amp;nbsp;disambiguation&lt;BR /&gt;&lt;/FONT&gt;Ask user a clarification questions when user asks for "weight" or "volume". Do NOT assume which column to use. Do not generate SQL or provide an answer until the ambiguity is resolved.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Version 2&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;...&lt;BR /&gt;&lt;BR /&gt;#&amp;nbsp;disambiguation&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;When multiple columns could match the user's intent, always ask a clarification question before generating a query. Do not generate SQL or provide an answer until the ambiguity is resolved.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Sometimes it works, sometimes not. Please note that I have some other text instructions above those definitions.&lt;/P&gt;&lt;P&gt;Besides I found an article stating that "&lt;EM&gt;General Instructions Must Be ≤20 Lines&lt;/EM&gt;" !?&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 13:11:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/improving-genie-space-via-text-instructions/m-p/157176#M1811</guid>
      <dc:creator>michael365</dc:creator>
      <dc:date>2026-05-18T13:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Improving Genie Space via text instructions</title>
      <link>https://community.databricks.com/t5/generative-ai/improving-genie-space-via-text-instructions/m-p/157201#M1814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/219327"&gt;@michael365&lt;/a&gt;,&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;There is no documented hard rule that "general instructions must be 20 lines or less." Databricks guidance is to keep text instructions small, focused, and well-organised, because long or overly broad instructions can become less effective, especially over longer conversations. However, what you are seeing can happen, especially when clarification behaviour is defined only in plain-text instructions.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;A few best practices that usually help:&lt;/P&gt;
&lt;OL&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Prefer SQL expressions and example SQL over text instructions wherever possible. Those tend to be more reliable than plain text alone.&lt;/LI&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Make clarification rules very explicit. Instead of a general instruction like "ask a clarification question," define&amp;nbsp;the trigger condition,&amp;nbsp;what detail is missing,&amp;nbsp;that Genie must ask before answering and&amp;nbsp;the exact clarification question it should ask.&lt;/LI&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Put clarification instructions at the end of the general instructions so they are easier for Genie to prioritise.&lt;/LI&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Keep the space narrowly focused and reduce ambiguity in the data model where possible, for example, by improving column descriptions, adding synonyms, or hiding confusing columns.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;For your example, a stronger pattern would be something like:&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;"When a user asks about weight or volume, and multiple columns could match the request, ask a clarification question before generating SQL or answering. Do not assume the correct column. Ask exactly: 'Which measure do you want me to use: gross weight, net weight, or volume?' Only continue after the user selects one."&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Useful references:&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&lt;A href="https://docs.databricks.com/aws/en/genie/best-practices" rel="noopener noreferrer nofollow" target="_blank"&gt;Curate an effective Genie Space&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&lt;A href="https://docs.databricks.com/aws/en/genie/tune-quality" rel="noopener noreferrer nofollow" target="_blank"&gt;Tune Genie Space quality / provide instructions&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&lt;A href="https://docs.databricks.com/aws/en/genie/set-up" rel="noopener noreferrer nofollow" target="_blank"&gt;Create and manage a Genie Space&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;In short... the issue is usually less about a strict line limit, and more about instruction quality, specificity, and whether the behaviour should instead be taught through examples or SQL-based definitions.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 18:50:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/improving-genie-space-via-text-instructions/m-p/157201#M1814</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-05-18T18:50:09Z</dc:date>
    </item>
  </channel>
</rss>

