<?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 Re: SQL AI functions not working in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83602#M365</link>
    <description>&lt;P&gt;still waiting for response from&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102655"&gt;@jessysantos&lt;/a&gt;&amp;nbsp;..&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 12:46:00 GMT</pubDate>
    <dc:creator>Michael_Galli</dc:creator>
    <dc:date>2024-08-20T12:46:00Z</dc:date>
    <item>
      <title>SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83484#M358</link>
      <description>&lt;P&gt;I am working in the following environment:&lt;/P&gt;&lt;P&gt;- New Databricks workspsace with UC enabled&lt;BR /&gt;- Azure, region west-europe&lt;BR /&gt;- Cluster: Interactive (DBR 15.4), or SQL Warehouse (Serverless)&lt;/P&gt;&lt;P&gt;Running for example:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt; ai_gen(&lt;/SPAN&gt;&lt;SPAN&gt;'Generate a concise, cheerful email title for a summer bike sale with 20% discount'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="" href="https://docs.microsoft.com/azure/databricks/error-messages/error-classes#remote_function_missing_requirements_error" target="_blank" rel="noopener noreferrer"&gt;REMOTE_FUNCTION_MISSING_REQUIREMENTS_ERROR&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt; Failed to evaluate the ai_gen SQL function because 'Databricks Foundation Models API is not available for your workspace'. Check requirements in &lt;/SPAN&gt;&lt;A class="" href="https://docs.databricks.com/en/machine-learning/foundation-models/index.html" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/en/machine-learning/foundation-models/index.html&lt;/A&gt;&lt;SPAN&gt;. Please fix the problem indicated in the error message and retry the query again. SQLSTATE: 57012&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any idea what might be the problem? Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Aug 2024 18:23:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83484#M358</guid>
      <dc:creator>Michael_Galli</dc:creator>
      <dc:date>2024-08-19T18:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83489#M359</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25359"&gt;@Michael_Galli&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The ai_gen uses the&amp;nbsp;Mixtral-8x7B Instruct as its underlying Foundation model, which powers this and other AI functions as described in this doc:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/sql/language-manual/functions/ai_gen.html#requirements" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/functions/ai_gen.html#requirements&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;According to the error message you shared, it appears that your workspace does not have the Foundation Model APIs enabled. You should be able to verify this by checking your Serving page, where you should see the following endpoints:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-19 at 17.18.04.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10427iFEF50A304B0CE8E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-19 at 17.18.04.png" alt="Screenshot 2024-08-19 at 17.18.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can check more information regarding these endpoints in this doc:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/machine-learning/foundation-models/index.html#pay-per-token-foundation-model-apis" target="_blank"&gt;https://docs.databricks.com/en/machine-learning/foundation-models/index.html#pay-per-token-foundation-model-apis&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you do not see these endpoint in the Serving UI, please reach out to your Databricks account team.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Jéssica Santos&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 20:32:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83489#M359</guid>
      <dc:creator>jessysantos</dc:creator>
      <dc:date>2024-08-19T20:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83518#M360</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Jéssica&lt;/SPAN&gt;,&lt;BR /&gt;I only see 2 serving endpoints in Azure that come as default:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Galli_0-1724115023747.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10436i831D3591ADEA75F4/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Michael_Galli_0-1724115023747.png" alt="Michael_Galli_0-1724115023747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In our AWS workspace, we only have "GTE Large (En)"..&lt;BR /&gt;So this is nothing we can fix by ourselves, right? I will reach out to&amp;nbsp; &amp;nbsp; our Databricks account then..&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 00:54:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83518#M360</guid>
      <dc:creator>Michael_Galli</dc:creator>
      <dc:date>2024-08-20T00:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83561#M362</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102655"&gt;@jessysantos&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I just checked my private Azure subscription where I also have a Databricks instance set up in westeurope region.&lt;BR /&gt;That region is supposed to be fully supported for the foundational models.&lt;BR /&gt;But even there I only see the two serving endpoints above, not the full list.&lt;BR /&gt;Same in the workspace of our enterprise customer, also located in west europe!&lt;BR /&gt;So I think this is a general problem..&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 07:46:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83561#M362</guid>
      <dc:creator>Michael_Galli</dc:creator>
      <dc:date>2024-08-20T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83596#M364</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25359"&gt;@Michael_Galli&lt;/a&gt;, Thanks for reaching out! Please review the response and let us know if it answers your question. Your feedback is valuable to us and the community.&lt;/P&gt;
&lt;P&gt;If the response resolves your issue, kindly mark it as the accepted solution. This will help close the thread and assist others with similar queries.&lt;/P&gt;
&lt;P&gt;We appreciate your participation and are here if you need further assistance!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 12:36:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83596#M364</guid>
      <dc:creator>Retired_mod</dc:creator>
      <dc:date>2024-08-20T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83602#M365</link>
      <description>&lt;P&gt;still waiting for response from&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102655"&gt;@jessysantos&lt;/a&gt;&amp;nbsp;..&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 12:46:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83602#M365</guid>
      <dc:creator>Michael_Galli</dc:creator>
      <dc:date>2024-08-20T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83670#M368</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25359"&gt;@Michael_Galli&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry for the delay in my response. Unfortunately, only the two models you mentioned, Meta Llama 3.1 70B Instruct and GTE Large (En), are currently available in the EU Geo. Our team is working to make more models available soon for other European regions on AWS and Azure cloud. There's no action required from your end, as these releases are handled by the Databricks side.&lt;BR /&gt;The good news is that some AI functions, such as the ai_query function, have an endpointName argument that allows you to specify the available models you currently have. For example, you can specify the Meta Llama 3.1 70B Instruct model. To get more details, please refer to the documentation for this specific AI function:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/sql/language-manual/functions/ai_query.html#syntax" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/functions/ai_query.html#syntax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-20 at 15.34.10.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10486i8247445B2B28C0A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-08-20 at 15.34.10.png" alt="Screenshot 2024-08-20 at 15.34.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; Best regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jéssica Santos&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 18:35:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83670#M368</guid>
      <dc:creator>jessysantos</dc:creator>
      <dc:date>2024-08-20T18:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL AI functions not working</title>
      <link>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83716#M369</link>
      <description>&lt;P&gt;Thanks for the info.&lt;BR /&gt;As we are want to prepair a demo of all the sql ai functions, can you tell us what AWS and Azure regions currently support all required Foundation models?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 06:38:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/sql-ai-functions-not-working/m-p/83716#M369</guid>
      <dc:creator>Michael_Galli</dc:creator>
      <dc:date>2024-08-21T06:38:26Z</dc:date>
    </item>
  </channel>
</rss>

