avatarLaxfed Paulacy

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1924

Abstract

n manually explore the data for further insights.</p><p id="f50b">To get started with Test Run Comparisons, follow the steps below.</p><h2 id="5bc4">Setting Up a Dataset and Running Tests</h2><p id="8af9">First, set up a dataset and run some tests. If you’ve already done this for an existing project, you’re all set. If not, refer to the documentation for instructions on how to do so.</p><h2 id="aa6b">Comparing Test Runs</h2><p id="ffad">Inside a dataset, you can select two or more test runs and click <code>Compare</code>. This action will bring you to the Test Run Comparison view, where you can easily see the inputs, reference output, actual output, evaluation metrics, time, and latency for each test run.</p><div id="a86f"><pre><span class="hljs-comment"># Selecting test runs and comparing them</span> <span class="hljs-attr">selected_test_runs</span> = [test_run1, test_run2] <span class="hljs-attr">test_run_comparison_view</span> = compare_test_runs(selected_test_runs)</pre></div><h2 id="cb86">Exploring Test Run Comparison View</h2><p id="7559">The Test Run Comparison view allows you to quickly compare test runs across the same inputs. You can click on specific datapoints to drill down into the details of each run. Additionally, a sidebar is available to navigate between runs using up and down carets (▲ and ▼).</p><div id="25a6"><pre># Exploring the <span class="hljs-keyword">Test</span> <span class="hljs-keyword">Run</span> Comparison <span class="hljs-keyword">view</span> explore_test_run_comparison(test_run_comparison_view)</pre></div><h2 id="af07">Filtering Data</h2><p id="f3a4">The Test Run Comparison view includes filters for each column, similar to Excel. These filters enable you to narrow down the data based on specific criteria. For example, you can filter one test run to show correct datapoints and the other to show incorrect datapoints, allowing you to identify significant differe

Options

nces between the two test runs.</p><div id="5a61"><pre><span class="hljs-comment"># Filtering data in the Test Run Comparison view</span> filter_test_run_comparison_data(test_run_comparison_view, <span class="hljs-attribute">criteria</span>=<span class="hljs-string">'correct'</span>) filter_test_run_comparison_data(test_run_comparison_view, <span class="hljs-attribute">criteria</span>=<span class="hljs-string">'incorrect'</span>)</pre></div><p id="22a5">By enabling users to compare test runs and explore the details of each run, Test Run Comparisons in LangSmith aims to facilitate a deeper understanding of LLM applications and improve their development. We are continuously working to enhance LangSmith and will be rolling out more features like this in the future.</p><p id="a98f">To access LangSmith, sign up for the private beta <a href="https://smith.langchain.com/?ref=blog.langchain.dev">here</a>. We welcome any feedback you have regarding Test Run Comparisons or other features of LangSmith.</p><div id="39bc" class="link-block"> <a href="https://readmedium.com/langchain-is-it-effective-to-test-fine-tuned-open-source-models-in-langsmith-faa946fda792"> <div> <div> <h2>LANGCHAIN — Is It Effective to Test Fine-Tuned Open Source Models in Langsmith?</h2> <div><h3>The most dangerous phrase in the language is, ‘We’ve always done it this way.’ — Grace Hopper.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*nu7ZXSdSXeo6aCLEJYoZpg.jpeg)"></div> </div> </div> </a> </div><p id="8627">Start leveraging Test Run Comparisons to gain valuable insights into your LLM applications and drive improvements based on data-driven comparisons.</p></article></body>

LANGCHAIN — Comparing Test Run Results

Before software can be reusable it first has to be usable. — Ralph Johnson

Evaluating the performance of LLM applications can be challenging. It’s difficult to quantitatively measure the impact of changes to prompts, chains, or agents. At LangChain, we recognize the value of manually inspecting data to gain intuition about the problem. To assist in this process, we are excited to introduce Test Run Comparisons.

In the initial release of LangSmith, we introduced support for running tests and scoring them with LLM-assisted feedback. However, we observed that users were hesitant to fully trust the LLM-assisted feedback and often wanted to compare test runs with previous iterations.

Test Run Comparisons is designed to address these insights. It allows users to easily visualize and compare multiple test runs side-by-side. Additionally, it provides the flexibility to use LLM-assisted evals or other evaluation methods to obtain initial scores and then manually explore the data for further insights.

To get started with Test Run Comparisons, follow the steps below.

Setting Up a Dataset and Running Tests

First, set up a dataset and run some tests. If you’ve already done this for an existing project, you’re all set. If not, refer to the documentation for instructions on how to do so.

Comparing Test Runs

Inside a dataset, you can select two or more test runs and click Compare. This action will bring you to the Test Run Comparison view, where you can easily see the inputs, reference output, actual output, evaluation metrics, time, and latency for each test run.

# Selecting test runs and comparing them
selected_test_runs = [test_run1, test_run2]
test_run_comparison_view = compare_test_runs(selected_test_runs)

Exploring Test Run Comparison View

The Test Run Comparison view allows you to quickly compare test runs across the same inputs. You can click on specific datapoints to drill down into the details of each run. Additionally, a sidebar is available to navigate between runs using up and down carets (▲ and ▼).

# Exploring the Test Run Comparison view
explore_test_run_comparison(test_run_comparison_view)

Filtering Data

The Test Run Comparison view includes filters for each column, similar to Excel. These filters enable you to narrow down the data based on specific criteria. For example, you can filter one test run to show correct datapoints and the other to show incorrect datapoints, allowing you to identify significant differences between the two test runs.

# Filtering data in the Test Run Comparison view
filter_test_run_comparison_data(test_run_comparison_view, criteria='correct')
filter_test_run_comparison_data(test_run_comparison_view, criteria='incorrect')

By enabling users to compare test runs and explore the details of each run, Test Run Comparisons in LangSmith aims to facilitate a deeper understanding of LLM applications and improve their development. We are continuously working to enhance LangSmith and will be rolling out more features like this in the future.

To access LangSmith, sign up for the private beta here. We welcome any feedback you have regarding Test Run Comparisons or other features of LangSmith.

Start leveraging Test Run Comparisons to gain valuable insights into your LLM applications and drive improvements based on data-driven comparisons.

Comparing
Langchain
Test
ChatGPT
Run
Recommended from ReadMedium