• Documentation
    • About ​ValidMind
    • Get Started
    • Guides
    • Support
    • Releases

    • ValidMind Library
    • Python API
    • Public REST API

    • Training Courses
  • Log In
  1. 2.8.20 Release notes
  • All releases

  • Current releases
  • Feature highlights
  • ValidMind Platform releases
  • ValidMind Library releases
  • Documentation updates

  • Breaking changes and deprecations

  • Release archive
  • 2025 Releases
    • April 24, 2025
    • March 7, 2025
    • January 31, 2025
  • 2024 Releases
    • December 24, 2024
    • December 6, 2024
    • October 22, 2024
    • September 25, 2024
    • September 9, 2024
    • August 13, 2024
    • July 22, 2024
    • June 10, 2024
    • May 22, 2024
    • March 27, 2024
    • February 14, 2024
    • January 26, 2024
    • January 18, 2024
  • 2023 Releases
    • December 13, 2023
    • November 9, 2023
    • October 25, 2023
    • September 27, 2023
    • August 15, 2023
    • July 24, 2023
    • June 22, 2023
    • May 30, 2023

On this page

  • Highlights
    • Add text support for custom test descriptions
    • New notebook series for model validation with ValidMind
  • Documentation
    • Add RAG benchmarking demo notebook
  • Edit this page
  • Report an issue

2.8.20 Release notes

validmind-library
2.8.20
patch release
Published

April 16, 2025

This release includes text support for custom test descriptions, a new notebook series for model validation with ValidMind, and a RAG benchmarking demo notebook.

Highlights

Add text support for custom test descriptions

We have enhanced the custom test framework, allowing you to define custom descriptions for your tests. If a test returns a string, it will be used as the test description, overriding the automatic description generation.

@vm.test("my_custom_tests.MyCustomTest")
def my_custom_test(dataset, model):
    """
    This is a custom test that does nothing.
    """
    y_true = dataset.y
    y_pred = dataset.y_pred(model)

    confusion_matrix = metrics.confusion_matrix(y_true, y_pred)

    cm_display = metrics.ConfusionMatrixDisplay(
        confusion_matrix=confusion_matrix, display_labels=[False, True]
    )
    cm_display.plot()

    plt.close()  # close the plot to avoid displaying it

    return cm_display.figure_, "Test Description - Confusion Matrix", pd.DataFrame({"Value": [1, 2, 3]})

Run test

from validmind.tests import run_test

result = run_test(
    "my_custom_tests.MyCustomTest",
    inputs={"model": "model", "dataset": "test_dataset"},
)

Output

A web page titled My Custom Test displays a confusion matrix under the section labeled Test Description - Confusion Matrix. The page is divided into two main sections: Tables and Figures. The Tables section lists values 1, 2, and 3 in a vertical column. The Figures section contains a heatmap confusion matrix with a color gradient from yellow to dark purple, representing values from 0 to 1200. The matrix has axes labeled True label and Predicted label, with categories False and True on both axes.

Confusion matrix visualization

New notebook series for model validation with ValidMind

Explore our new series of introductory notebooks designed for model validation with ValidMind. These notebooks guide you through the entire process, tailored to common scenarios:

  • 1 — Set up ValidMind for validation.
  • 2 — Start the validation process.
  • 3 — Develop a potential challenger model.
  • 4 — Finalize validation and reporting.

You'll learn the basics of the ValidMind Library through interactive notebooks that introduce key concepts and familiarize you with tasks such as running and logging quality, performance, and comparison tests. Additionally, you'll learn how to develop potential challenger models and use validation report tools. By the end of this series, you'll have a sample validation report ready to use.

Documentation

Add RAG benchmarking demo notebook

We have introduced a comprehensive notebook, rag_benchmarking_demo.ipynb, to help you benchmark Retrieval-Augmented Generation (RAG) models using the ValidMind library. This notebook allows you to compare multiple configurations for the RAG RFP use case.

You can evaluate two embedding models: OpenAI's text-embedding-3-small and text-embedding-3-large. Additionally, the notebook includes two retrieval models with different k parameters, 5 and 10. There are also two LLM generators available: gpt-3.5-turbo and gpt-4o. This results in four complete RAG configurations for thorough testing.

The notebook replicates tests from rag_documentation_demo.ipynb. It evaluates context precision, faithfulness, and answer correctness. It also assesses generation quality using metrics like ROUGE, BLEU, and BERT Score. Furthermore, it conducts bias and toxicity evaluations across all configurations.

  • ValidMind Logo
    ©
    Copyright 2026 ValidMind Inc.
    All Rights Reserved.
    Cookie preferences
    Legal
  • Get started
    • Development
    • Validation
    • Setup & admin
  • Guides
    • Access
    • Configuration
    • Integrations
    • Workflows
    • Inventory
    • Risk tiering
    • Documents & templates
    • Documentation
    • Validation
    • Reporting & auditing
    • Monitoring
    • Attestation
  • ValidMind Library
    • Quickstarts
    • Development tutorial
    • Validation tutorial
    • Run tests & test suites
    • Use library features
    • Code samples
    • Python API
    • Public REST API
  • Training
    • Learning paths
    • Courses
    • Videos
  • Support
    • Troubleshooting
    • FAQ
    • Get help
  • Edit this page
  • Report an issue
  • Community
    • GitHub
    • LinkedIn
    • Events
    • Blog