<?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>article Agents and Chains: How to Log, Deploy, and Debug AGENTS with Databricks (With demo!) in Databricks TV</title>
    <link>https://community.databricks.com/t5/databricks-tv/agents-and-chains-how-to-log-deploy-and-debug-agents-with/ba-p/81095</link>
    <description>&lt;P&gt;&lt;IFRAME src="https://www.youtube.com/embed/s62-Wr6mmLE?si=D_uINvLcQK6zW11O" width="560" height="315" frameborder="0" allowfullscreen="" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin"&gt;&lt;/IFRAME&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 15:44:45 GMT</pubDate>
    <dc:creator>lara_rachidi</dc:creator>
    <dc:date>2024-07-30T15:44:45Z</dc:date>
    <item>
      <title>Agents and Chains: How to Log, Deploy, and Debug AGENTS with Databricks (With demo!)</title>
      <link>https://community.databricks.com/t5/databricks-tv/agents-and-chains-how-to-log-deploy-and-debug-agents-with/ba-p/81095</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In this video, we deep dive into the world of agents and chains on Databricks! We cover all the newest Databricks tools for building compound systems and agents with better evaluation and feedback. We look at the three main features associated with this new framework: &lt;/SPAN&gt;&lt;SPAN&gt;00:26&lt;/SPAN&gt;&lt;SPAN&gt; How to create and log agents &lt;/SPAN&gt;&lt;SPAN&gt;08:47&lt;/SPAN&gt;&lt;SPAN&gt; How to deploy agents &lt;/SPAN&gt;&lt;SPAN&gt;11:55&lt;/SPAN&gt;&lt;SPAN&gt; Agent tracing &lt;/SPAN&gt;&lt;SPAN&gt;14:02&lt;/SPAN&gt;&lt;SPAN&gt; Deep dive into Mosaic AI Agent Evaluation &lt;/SPAN&gt;&lt;SPAN&gt;17:57&lt;/SPAN&gt;&lt;SPAN&gt; End-to-end demo! Using RAG (Retrieval-Augmented Generation) as a basic agent system, we show how to modularize components and configure them for flexibility. &lt;/SPAN&gt;&lt;SPAN&gt;00:26&lt;/SPAN&gt;&lt;SPAN&gt; First, we show you how to create your agent, how to parameterize your agents during dev, and how to iterate. We explain the difference between chains and agents and how to convert a chain to an agent. Chains, such as those used in LangChain, are often hard-coded and lack flexibility. In contrast, agents offer a modular and configurable approach, allowing large language models (LLMs) to make decisions dynamically. We explore how to log a model using the langchain flavor of mlflow (also possible with pyfunc flavor for more flexibility) and how to register your chain to UC. &lt;/SPAN&gt;&lt;SPAN&gt;08:47&lt;/SPAN&gt;&lt;SPAN&gt; Second, we show you how to deploy agents using Model Serving or the deploy() function (which lets you enable the Review app for your agent so that business stakeholders can provide feedback!), and how to leverage the system tables logged during this process (payload, request logs, and assessment logs from the review app). &lt;/SPAN&gt;&lt;SPAN&gt;11:55&lt;/SPAN&gt;&lt;SPAN&gt; Finally, we show you how to evaluate your agent and trace your agent, with metrics such as response metrics, retrieval metrics, and performance metrics, and how to kick off an evaluation run using the new MLflow evaluation API. We also explore the new integration with LLM as a judge. &lt;/SPAN&gt;&lt;SPAN&gt;14:02&lt;/SPAN&gt;&lt;SPAN&gt; Deep dive into Mosaic AI Agent Evaluation: It is an AI-assisted evaluation tool that automatically determines if outputs are high-quality and provides an intuitive UI to get feedback from human stakeholders. Agent Evaluation lets you define what high-quality answers look like for your AI system by providing “golden” examples of successful interactions. You can explore permutations of the system, tuning models, changing retrieval, or adding tools, and understand how system changes alter quality. Agent Evaluation also lets you invite subject matter experts across your organization - even those without Databricks accounts - to review and label your AI system output to do production quality assessments and build up an extended evaluation dataset. Finally, system-provided LLM judges can further scale the collection of evaluation data by grading responses on common criteria such as accuracy or helpfulness. Detailed production traces can help diagnose low-quality responses.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;17:57&lt;/SPAN&gt;&lt;SPAN&gt; End-to-end demo!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; If you want to know more about compound systems, check our video on how to optimize your LLM Pipelines with DSPy &lt;A href="https://www.youtube.com/watch?v=ChaS0MkYPmE" target="_blank"&gt;https://www.youtube.com/watch?v=ChaS0MkYPmE&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:44:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-tv/agents-and-chains-how-to-log-deploy-and-debug-agents-with/ba-p/81095</guid>
      <dc:creator>lara_rachidi</dc:creator>
      <dc:date>2024-07-30T15:44:45Z</dc:date>
    </item>
  </channel>
</rss>

