<?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: Add AI Guardrail results into response? in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138855#M1390</link>
    <description>&lt;P&gt;To include AI Guardrail results in your responses, you need to enable logging or metadata propagation when the model generates output. Check if Mosaic AI Gateway supports attaching Guardrail flags or filter results as part of the response payload or streaming deltas. If not, consider using a post-processing step that queries the Guardrail service separately and merges results into your UI or inference table.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2025 05:49:58 GMT</pubDate>
    <dc:creator>CharlotteMarti2</dc:creator>
    <dc:date>2025-11-13T05:49:58Z</dc:date>
    <item>
      <title>Add AI Guardrail results into response?</title>
      <link>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138643#M1382</link>
      <description>&lt;P&gt;We're considering switching from Azure AI Foundry to Mosaic AI Gateway.&amp;nbsp; One nice feature AI Foundry has is it adds the content filter results to the response (and in a streaming response, each delta).&amp;nbsp; This allows us to provide some feedback to the user, and b&lt;SPAN&gt;ecause the filter results are in the response, they end up in the inference table, and we can extract and analyze the results.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;We turned on AI Guardrails for some Databricks-hosted models but we don't see any results in the inference tables.&amp;nbsp; Is there a way to add these results to the response so we can manifest them in our UI?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 19:29:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138643#M1382</guid>
      <dc:creator>Rjdudley</dc:creator>
      <dc:date>2025-11-11T19:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add AI Guardrail results into response?</title>
      <link>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138785#M1387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/107723"&gt;@Rjdudley&lt;/a&gt;, if you enable the guardrails on the endpoint and configure the inference table, the appropriate information gets logged in the response column of the inference table (When the guardrail is triggered). In th snapshot below, it has been tripped for PII data detection.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KaushalVachhani_0-1762954261524.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21634iB1287D49F7241A19/image-size/large?v=v2&amp;amp;px=999" role="button" title="KaushalVachhani_0-1762954261524.png" alt="KaushalVachhani_0-1762954261524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KaushalVachhani_3-1762954802328.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21637i71B7FA0B0147F515/image-size/large?v=v2&amp;amp;px=999" role="button" title="KaushalVachhani_3-1762954802328.png" alt="KaushalVachhani_3-1762954802328.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do you not see the same behaviour? Or let me know if I misunderstood the question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 13:41:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138785#M1387</guid>
      <dc:creator>KaushalVachhani</dc:creator>
      <dc:date>2025-11-12T13:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add AI Guardrail results into response?</title>
      <link>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138788#M1388</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/74780"&gt;@KaushalVachhani&lt;/a&gt;&amp;nbsp;Does that only happen if you trigger the guardrail?&amp;nbsp; We have not seen that yet but maybe we have not triggered it yet.&amp;nbsp; AI Foundry adds that information in every response (and in the case of streaming, every chunk).&amp;nbsp; We have been experimenting with Safety but we'll try the PII guardrail.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:18:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138788#M1388</guid>
      <dc:creator>Rjdudley</dc:creator>
      <dc:date>2025-11-12T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add AI Guardrail results into response?</title>
      <link>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138797#M1389</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/107723"&gt;@Rjdudley&lt;/a&gt;, in the inference table, it appears to log the guardrails information only when they are&amp;nbsp;tripped. Maybe you can filter the response using&amp;nbsp;&lt;STRONG&gt;finishReason&lt;/STRONG&gt;&amp;nbsp;to get only tripped requests.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:59:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138797#M1389</guid>
      <dc:creator>KaushalVachhani</dc:creator>
      <dc:date>2025-11-12T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add AI Guardrail results into response?</title>
      <link>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138855#M1390</link>
      <description>&lt;P&gt;To include AI Guardrail results in your responses, you need to enable logging or metadata propagation when the model generates output. Check if Mosaic AI Gateway supports attaching Guardrail flags or filter results as part of the response payload or streaming deltas. If not, consider using a post-processing step that queries the Guardrail service separately and merges results into your UI or inference table.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 05:49:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/add-ai-guardrail-results-into-response/m-p/138855#M1390</guid>
      <dc:creator>CharlotteMarti2</dc:creator>
      <dc:date>2025-11-13T05:49:58Z</dc:date>
    </item>
  </channel>
</rss>

