• Live Crypto Prices
  • Crypto News
    • Worldwide
      • Bitcoin
      • Ethereum
      • Altcoin
      • Blockchain
      • Regulation
    • Australian Crypto News
  • Education
    • Cryptocurrency For Beginners
    • Where to Buy Cryptocurrency
    • Where to Store Cryptos
    • Cryptocurrency Tax in Australia 2021
No Result
View All Result
CryptoABC.net
No Result
View All Result

LangSmith Enhances LLM Evaluations with Pytest and Vitest Integrations

January 25, 2025
in Blockchain
Reading Time: 2min read
0 0
A A
0
Understanding the Role and Capabilities of AI Agents
0
SHARES
8
VIEWS
ShareShareShareShareShare


Caroline Bishop
Jan 25, 2025 04:44

LangSmith introduces Pytest and Vitest integrations to enhance LLM application evaluations, offering improved testing frameworks for developers.





LangSmith has unveiled new integrations with Pytest and Vitest, aiming to streamline the evaluation process of Large Language Model (LLM) applications. These integrations, now in beta with version 0.3.0 of the LangSmith Python and TypeScript SDKs, provide developers with enhanced testing capabilities, according to LangChain’s blog.

Enhanced Testing Frameworks for LLM Evaluations

LLM evaluations (evals) are crucial for maintaining the reliability and quality of applications. By integrating with Pytest and Vitest, developers familiar with these frameworks can now leverage LangSmith’s advanced features, such as observability and sharing capabilities, without compromising on the developer experience they are accustomed to.

The integrations allow developers to debug tests more effectively, log detailed metrics beyond simple pass/fail results, and share results effortlessly across teams. The non-deterministic nature of LLMs adds complexity to debugging, which LangSmith addresses by saving inputs, outputs, and stack traces from test cases.

Utilizing Built-in Evaluation Functions

LangSmith provides built-in evaluation functions, such as expect.edit_distance(), which compute the string distance between test outputs and reference outputs. This feature is particularly useful for developers who need to ensure their applications consistently deploy the best version. Detailed insights into these functions can be found in LangSmith’s API reference.

Getting Started with Pytest and Vitest

To integrate with Pytest, developers need to add the @pytest.mark.langsmith decorator to their test cases. This setup logs all test case results, application traces, and feedback traces to LangSmith, providing a comprehensive view of the application’s performance.

Similarly, Vitest users can wrap their test cases in an ls.describe() block to achieve the same level of integration and logging. Both frameworks offer real-time feedback and can be seamlessly integrated into continuous integration (CI) pipelines, helping developers catch regressions early.

Advantages Over Traditional Evaluation Methods

Traditional evaluation methods often require predefined datasets and evaluation functions, which can be limiting. LangSmith’s new integrations offer flexibility by allowing developers to define specific test cases and evaluation logic, tailored to their application’s needs. This approach is particularly beneficial for applications that require testing across multiple tools or models with varying evaluation criteria.

The real-time feedback provided by these testing frameworks facilitates rapid iteration and local development, making it easier for developers to refine their applications quickly. Additionally, the integration with CI pipelines ensures that any potential regressions are identified and addressed early in the development process.

For more information on how to utilize these integrations, developers can refer to LangSmith’s comprehensive tutorials and how-to guides available on their documentation site.

Image source: Shutterstock


Credit: Source link

ShareTweetSendPinShare
Previous Post

NVIDIA Unveils OpenUSD Workflows to Propel Physical AI in Robotics and Autonomous Vehicles

Next Post

Intesa Sanpaolo Enters Bitcoin Market with Strategic Investment

Next Post
Bitcoin Holdings in Public Company Treasuries Exceed 200,000 BTC

Intesa Sanpaolo Enters Bitcoin Market with Strategic Investment

You might also like

VeChain Foundation Releases Q1 2024 Treasury Report

AI Video Tools in 2026 – Manus Claims Top Spot in 12-Platform Test

March 6, 2026
Nvidia Plans to add Innovation in the Metaverse with Software, Marketplace Deals

NVIDIA CCCL 3.1 Adds Floating-Point Determinism Controls for GPU Computing

March 5, 2026
Michael Saylor’s Strategy Acquires $1,280,000,000 in Bitcoin, Tom Lee’s Bitmine Buys $122,000,000 in Ethereum

Michael Saylor’s Strategy Acquires $1,280,000,000 in Bitcoin, Tom Lee’s Bitmine Buys $122,000,000 in Ethereum

March 10, 2026
$HYPE to Hit $150 By August Says Admitted “Hype Man” Arthur Hayes

$HYPE to Hit $150 By August Says Admitted “Hype Man” Arthur Hayes

March 10, 2026
Uniswap (UNI) Price Rallies 6.53% – Is Now the Time to Buy? Comprehensive Analysis & Trading Insights

LDO Price Prediction: Targets $0.32 Breakout as Technical Indicators Signal Potential Recovery

March 7, 2026
OpenAI: Paf Leverages 85 Custom GPTs to Boost Developer Productivity

OpenAI Partners With Tata Group to Build 1GW AI Infrastructure in India

March 5, 2026
CryptoABC.net

This is an Australian online news/education portal that aims to provide the latest crypto news, real-time updates, education and reviews within Australia and around the world. Feel free to get in touch with us!

What's New Here!

Bitcoin May Sink To $50K, Standard Chartered’s Kendrick Warns

Bitcoin May Sink To $50K, Standard Chartered’s Kendrick Warns

March 11, 2026
Polymarket Teams Up With Palantir to Monitor Sports Prediction Markets

Polymarket Teams Up With Palantir to Monitor Sports Prediction Markets

March 11, 2026

Subscribe Now

  • Contact Us
  • Privacy Policy
  • Terms of Use
  • DMCA

© 2021 cryptoabc.net - All rights reserved!

No Result
View All Result
  • Live Crypto Prices
  • Crypto News
    • Worldwide
      • Bitcoin
      • Ethereum
      • Altcoin
      • Blockchain
      • Regulation
    • Australian Crypto News
  • Education
    • Cryptocurrency For Beginners
    • Where to Buy Cryptocurrency
    • Where to Store Cryptos
    • Cryptocurrency Tax in Australia 2021

© 2021 cryptoabc.net - All rights reserved!

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Please enter CoinGecko Free Api Key to get this plugin works.