<?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: Using generative AI to generate descriptions in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/91260#M571</link>
    <description>&lt;P&gt;You can use &lt;A href="https://docs.databricks.com/en/sql/language-manual/functions/ai_query.html#ai_query-function" target="_self"&gt;ai_query&lt;/A&gt;&amp;nbsp;function to achieve this in SQL. It takes an LLM endpoint and a prompt as input.&lt;/P&gt;
&lt;P&gt;Here's an example with DBRX and a specific Indian manufacturing industry-related prompt.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;create&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;or&lt;/SPAN&gt; &lt;SPAN&gt;replace&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; ai_create_table_metadata (table_name &lt;/SPAN&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;returns&lt;/SPAN&gt; &lt;SPAN&gt;string&lt;/SPAN&gt; &lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;ai_query(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;'databricks-dbrx-instruct'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CONCAT(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;'Generate a short business description for the below table name in the context of the Indian Manufacturing Industry:: '&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; table_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; table_name,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ai_create_table_metadata(table_name) &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; table_desc&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; system.information_schema.&lt;/SPAN&gt;&lt;SPAN&gt;tables&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;where&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; table_name = 'your_table_name';&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 21 Sep 2024 06:00:22 GMT</pubDate>
    <dc:creator>vikasgautam</dc:creator>
    <dc:date>2024-09-21T06:00:22Z</dc:date>
    <item>
      <title>Using generative AI to generate descriptions</title>
      <link>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/91167#M569</link>
      <description>&lt;P&gt;Hi all, I would like to check if there is a function in databricks notebook that allows users to get AI generated descriptions of dataframes within the session similar to the AI generated descriptions for tables? This is because I am wondering it it would be possible to iteratively go through multiple dataframes to generate and store their descriptions. Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 07:46:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/91167#M569</guid>
      <dc:creator>monke64</dc:creator>
      <dc:date>2024-09-20T07:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using generative AI to generate descriptions</title>
      <link>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/91260#M571</link>
      <description>&lt;P&gt;You can use &lt;A href="https://docs.databricks.com/en/sql/language-manual/functions/ai_query.html#ai_query-function" target="_self"&gt;ai_query&lt;/A&gt;&amp;nbsp;function to achieve this in SQL. It takes an LLM endpoint and a prompt as input.&lt;/P&gt;
&lt;P&gt;Here's an example with DBRX and a specific Indian manufacturing industry-related prompt.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;create&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;or&lt;/SPAN&gt; &lt;SPAN&gt;replace&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; ai_create_table_metadata (table_name &lt;/SPAN&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;returns&lt;/SPAN&gt; &lt;SPAN&gt;string&lt;/SPAN&gt; &lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;ai_query(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;'databricks-dbrx-instruct'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CONCAT(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;'Generate a short business description for the below table name in the context of the Indian Manufacturing Industry:: '&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; table_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; table_name,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ai_create_table_metadata(table_name) &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; table_desc&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; system.information_schema.&lt;/SPAN&gt;&lt;SPAN&gt;tables&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;where&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; table_name = 'your_table_name';&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 21 Sep 2024 06:00:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/91260#M571</guid>
      <dc:creator>vikasgautam</dc:creator>
      <dc:date>2024-09-21T06:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using generative AI to generate descriptions</title>
      <link>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/150579#M1670</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/28724"&gt;@vikasgautam&lt;/a&gt;&amp;nbsp; for sharing this solution.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 11:12:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/150579#M1670</guid>
      <dc:creator>Nidhig631</dc:creator>
      <dc:date>2026-03-11T11:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using generative AI to generate descriptions</title>
      <link>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/150784#M1691</link>
      <description>&lt;P&gt;You can also use &lt;STRONG&gt;Genie Code&lt;/STRONG&gt; (which was named &lt;STRONG&gt;Assistent&lt;/STRONG&gt;&amp;nbsp;before) and put in some instructions as below. This would then be used and applied once the developer uses the Genie Code.&lt;BR /&gt;&lt;BR /&gt;Or alternatively you can create an Agent Skill and put those instructions with the Agent skill file. In addition you can define some key words for the Skill like "generate descriptions" which enables Genie Code to perform the instructions once you enter those two words in a prompt.&lt;BR /&gt;&lt;BR /&gt;In general there is high potential with Genie Code and Agent Skills to automatically:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;check Code in terms of coding guidelines&lt;/LI&gt;&lt;LI&gt;check for logic and usage of typical coding instructions&lt;/LI&gt;&lt;LI&gt;add documentation&lt;/LI&gt;&lt;LI&gt;etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;## Header documentation&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Add a "--" and 50 "=" characters as first line to code&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Add a "--" and name of user as author to header as comment &lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Add a "--" and timestamp including Day, Date, Time of last updated to header as comment&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Adda "-" and &amp;nbsp;50 "=" characters after author and timestamp&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;## General&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Use consistent and descriptive identifiers and names.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Make judicious use of white space and indentation to make code easier to read.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Store ISO 8601 compliant time and date information (YYYY-MM-DDTHH:MM:SS.SSSSS)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Include comments in SQL code where necessary.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Names must begin with a letter and may not end with an underscore.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Only use letters, numbers and underscores in names.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Mar 2026 11:29:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/using-generative-ai-to-generate-descriptions/m-p/150784#M1691</guid>
      <dc:creator>michael365</dc:creator>
      <dc:date>2026-03-13T11:29:13Z</dc:date>
    </item>
  </channel>
</rss>

