2.8.26 Release notes
This release includes a demo notebook for the code explainer, support for customizable judge LLM and embeddings in ValidMind tests, a section to inject custom context via docstring, and interfaces to support the code explainer feature in ValidMind, among other enhancements.
Highlights
Quickstart guide for model validation with ValidMind Library
Get started with model validation using the ValidMind Library with our new quickstart guide:
- Learn how to use ValidMind to validate models in a model validation workflow.
- Set up the ValidMind Library in your environment to audit data quality adjustments and validate a proposed champion model using ValidMind tests for a binary classification model.
Add demo notebook for code explainer
This update introduces a comprehensive script and Jupyter notebook for documenting and explaining a customer churn prediction model using the ValidMind library.
Interfaces to support code explainer feature in ValidMind
This update introduces an experimental feature for text generation tasks within the ValidMind project. It includes interfaces to utilize the code_explainer LLM feature, currently in the experimental namespace to gather feedback.
How to use:
Read the source code as a string:
with open("customer_churn.py", "r") as f: source_code = f.read()Define the input for the
run_tasktask. The input requires two variables in dictionary format:code_explainer_input = { "source_code": source_code, "additional_instructions": """ Please explain the code in a way that is easy to understand. """ }Run the
code_explainertask withgeneration_type="code_explainer":result = vm.experimental.agents.run_task( task="code_explainer", input=code_explainer_input )
Example Output: 
Enhancements
Support customizable judge LLM and embeddings in ValidMind tests
This update enhances your experience by allowing you to use your own LLM. All existing tests that use an LLM now support a user-defined LLM or Embedding model, provided it is compatible with the Langchain Chat/Embedding framework. This functionality is available for RAGAS and prompt validation tests, offering greater customization and flexibility in your AI and prompt validation processes.
Support qualitative text generation in run_task function
This update enhances the run_task function in the validmind/experimental/agents.py file to support a new task type. You can now generate qualitative text for a specific section of a document using the vm.experimental.agents.run_task method. The generated content will be displayed in the model_overview text block section.
Add status flags to ongoing monitoring tests in ValidMind Library
This update enhances the log_metric and alog_metric functions in the ValidMind Library by adding visual status indicators for monitoring metrics. You can now use the passed parameter in the log_metric() function to include status badges in Metrics Over Time blocks. The passed parameter accepts a boolean value: passed=True shows a green "Satisfactory" badge, while passed=False shows a yellow "Requires Attention" badge.
This feature lets you visually assess metric performance against defined business rules. You can set the status manually or determine it programmatically using custom evaluation functions with specific acceptance criteria. The status indicators help quickly identify metrics that need attention, support compliance documentation with clear visual cues, and enable more targeted alerts based on metric status.

![A line chart titled GINI Score displays data over time with the x-axis labeled Recorded At [Time] and the y-axis labeled GINI Score. The chart features a pink line with circular data points, showing a wave-like pattern with peaks and troughs, indicating fluctuations in the GINI score. A tooltip is visible near the last data point, showing the date June 9, 2025, 2:00 AM, a value of 0.5, and a status labeled Requires Attention. Horizontal reference lines in blue, green, and yellow represent high risk, medium risk, and low risk thresholds, respectively. The top right corner contains a Delete button and a yellow badge labeled Requires Attention.](../../../releases/validmind-library/v2.8.26/7779918e-fc0f-4375-af71-b0cc39a9ade4.png)
Update quickstart for model documentation in Jupyter notebooks
We've improved our Jupyter notebooks to make the model documentation quickstart guide more user-friendly and informative for beginners. A new "quickstart" directory has been added to notebooks/, along with an updated README to guide you:
To get started with documenting models using the ValidMind Library, check out our updated Quickstart for model documentation notebook:
- Learn the basics of using ValidMind to document models as part of a model development workflow.
- Set up the ValidMind Library in your environment and generate a draft of documentation using ValidMind tests for a binary classification model.
This update removes the old notebooks/code_samples/quickstart_customer_churn_full_suite.ipynb file as the new file and directory replace it.


Other changes
Update registration and login info in docs site and notebooks
This update standardizes the alert messages displayed across various notebooks by updating the text and some CSS styling details in the HTML blocks.

