<?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 Custom LLM Function similar to Databricks built in AI functions in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114071#M817</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am new to Databricks and working on Gen AI requirements.&lt;/P&gt;&lt;P&gt;Task - Build custom prompt with set of instructions to classify incident e.g. False Positive or True Positive. Input will be columns in Delta Table&lt;/P&gt;&lt;P&gt;Can I build custom LLM function with custom prompt and invoke it similar to built in AI function as SQL query. Or I should register function as model serving endpoint and then use this endpoint to apply on each record in Delta Table. Kindly provide suggestions&lt;/P&gt;</description>
    <pubDate>Mon, 31 Mar 2025 10:56:30 GMT</pubDate>
    <dc:creator>neha89</dc:creator>
    <dc:date>2025-03-31T10:56:30Z</dc:date>
    <item>
      <title>Custom LLM Function similar to Databricks built in AI functions</title>
      <link>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114071#M817</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am new to Databricks and working on Gen AI requirements.&lt;/P&gt;&lt;P&gt;Task - Build custom prompt with set of instructions to classify incident e.g. False Positive or True Positive. Input will be columns in Delta Table&lt;/P&gt;&lt;P&gt;Can I build custom LLM function with custom prompt and invoke it similar to built in AI function as SQL query. Or I should register function as model serving endpoint and then use this endpoint to apply on each record in Delta Table. Kindly provide suggestions&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 10:56:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114071#M817</guid>
      <dc:creator>neha89</dc:creator>
      <dc:date>2025-03-31T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom LLM Function similar to Databricks built in AI functions</title>
      <link>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114083#M818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155944"&gt;@neha89&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;You can use below approach:&lt;/P&gt;
&lt;P class="p1"&gt;Databricks provides &lt;STRONG&gt;AI Functions&lt;/STRONG&gt; that allow invoking large language models directly within SQL queries. Here’s how this approach works:&lt;/P&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Define a Custom AI Function&lt;/STRONG&gt;: You can define a SQL function using ai_query or similar built-in AI capabilities, which directly interact with a generative AI model (e.g., Databricks Foundation Models or OpenAI models).&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Prompt Engineering&lt;/STRONG&gt;: Build your classification prompt that receives Delta Table columns as input and generates the required classification (False Positive/True Positive).&lt;/LI&gt;
&lt;LI class="li1"&gt;Integrating with Delta Table: Use this SQL function to compute the classification and update the Delta Table&lt;/LI&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;Create an AI Function using ai_query.&lt;/LI&gt;
&lt;LI class="li1"&gt;Apply the function in an UPDATE or SELECT statement for your Delta Table.&lt;/LI&gt;
&lt;LI class="li1"&gt;Execute through standard SQL pipelines.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 31 Mar 2025 13:47:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114083#M818</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-03-31T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom LLM Function similar to Databricks built in AI functions</title>
      <link>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114131#M819</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;for explanation. This is really helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 02:28:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114131#M819</guid>
      <dc:creator>neha89</dc:creator>
      <dc:date>2025-04-01T02:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom LLM Function similar to Databricks built in AI functions</title>
      <link>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114173#M820</link>
      <description>&lt;P&gt;No problem, if you have any other question, let me know!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 12:37:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/custom-llm-function-similar-to-databricks-built-in-ai-functions/m-p/114173#M820</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-04-01T12:37:05Z</dc:date>
    </item>
  </channel>
</rss>

