You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's now required in ValidMind Library versions >=2.12.0 that a document is selected when copying your code snippet in the ValidMind Platform. Documentation updated to reflect this functionality:
Install and initialize the ValidMind Library
Added the document parameter to the vm.init() code snippet and arguments table, reflecting a new library feature (>=2.12.0) that requires users select which model document to upload test results to.
Prerequisites now references needing a registered model, an applied template, and being a model stakeholder with write access (replacing the old role-based requirement).
Restructured the page flow — Sections renamed (e.g. "Install ValidMind" becomes "Installing the ValidMind Library"), a new "Get your code snippet" subsection with a step to select a document, and improved intro copy.
Add a "What's next" listing at the bottom linking to the .env credentials guide and the testing overview.
Store model credentials in .env files
Reorganized into numbered sections ("1. Store credentials in an .env file" and "2. Use credentials in your Jupyter Notebook") with tabbed panels for sub-steps (get snippet vs. create file) and for with/without monitoring examples.
Added the document parameter to the vm.init() examples, consistent with the install and initialization page changes.
Updated prerequisites now references being a model stakeholder with write access (replacing the old role-based requirement).
Added a "What's next" grid listing linking to the testing overview and feature overview pages.
Enable monitoring
The intro was simplified, removing the numbered two-step outline.
The entire page was restructured into a tabbed panel (panel-tabset) with three tabs:
Get monitoring code snippet — uses the new _code-snippet.qmd include, instructs selecting Monitoring from the document dropdown, and setting the monitoring flag to true.
Select monitoring template — the existing template selection steps, moved into their own tab.
Run code snippet — a new tab with instructions to paste and run the snippet, including the document="monitoring" parameter in the example and a collapsible callout explaining how to use .env files with monitoring.
The old troubleshooting section was replaced with a prominent callout warning that a template must be applied before initializing.
The vm.init() example now includes document="monitoring" (requiring >=2.12.0).
Quickstarts (Model Development & Model Validation)
Updated conditional content based on a custom includes.developer metadata flag: Added a new step to select the document from the dropdown: Development for developers, Validation for validators.
Added functionality for including page-size: 4 to each listing tab so that the entries are paginated instead of stretching down really far.
Pages updated
Tested the updated scripts — scripts added page-size: 4 to the aforementioned landing pages, paginating notebook cards to show 4 per tabbed section instead of displaying all at once.
How to test
Click on the live previews and compare the changes with the help of the detailed change log above:
Code samples (Click Credit risk and NLP and LLM tabs)
old-samples.mov
new-samples.mov
What needs special review?
Important
Some instances of the rename (model documentation > Development) were left untouched (I only updated the images or text relevant to retrieving the code snippet) as this is covered by sc-14434.
Dependencies, breaking changes, and deployment notes
Note
Notebooks / validmind-library side hasn't been updated — opened related sc-15077 to deal with this as it's got its own requirements. When changes are complete there, I will pull the updates back into the documentation repo side.
This pull request introduces several enhancements and bug fixes to the developer documentation and user interface components of the project. The changes include:
Grid Pagination: Multiple QMD files for various sections (e.g., feature overview, sample notebooks) have been updated to include a new attribute page-size: 4 in the grid listings. This ensures a consistent number of items per page across different sections of the site.
Code Snippet Documentation: A new file _code-snippet.qmd has been added to the model documentation section. This file provides clear instructions regarding initialization, code snippet usage, and proper connection to the platform. The instructions include details on how to obtain and use the unique code snippet for each model.
Updated Installation and Initialization Guides: The installation guide for the ValidMind library has been revised to incorporate more detailed instructions. New steps include selecting the appropriate document type (e.g., Development, Validation, Monitoring) and ensuring that prerequisites are met, such as having a template applied to the model document. The guide now also covers retrieving code snippets, copying them, and initializing the library with proper parameters like document and monitoring flags.
Environment Credentials Handling: The guide on storing credentials in .env files has been enhanced. It now clarifies the security benefits of separating credentials from inline code and provides a more detailed step-by-step process for setting up and using a .env file with code snippet modifications in Jupyter Notebooks.
Developer-Specific UI Adjustments: Several training and get-started slide files have been updated to include conditionally visible content when developer metadata is present. This ensures that developers see relevant instructions and interactive iframe content, while non-developer views follow a different rendering path.
Script Updates: Minor script changes in the sidebar update logic have been made to include the new page-size attribute in the generated listings, keeping the UI consistent across sections.
Test Suggestions
Verify that grid listings across all pages display exactly 4 items per page.
Test the retrieval and copying of code snippets for Development, Validation, and Monitoring to ensure the correct document type is selected.
Ensure that the new _code-snippet.qmd file renders correctly and the embedded copyright/license notice is in place.
Validate that the conditional content (e.g., developer-specific slides) renders appropriately based on the metadata tags.
Perform a manual walkthrough of the environment credentials setup to verify that instructions provided for using .env files work as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internalNot to be externalized in the release notes
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
What and why?
It's now required in ValidMind Library versions >=2.12.0 that a document is selected when copying your code snippet in the ValidMind Platform. Documentation updated to reflect this functionality:
Install and initialize the ValidMind Library
documentparameter to thevm.init()code snippet and arguments table, reflecting a new library feature (>=2.12.0) that requires users select which model document to upload test results to..envcredentials guide and the testing overview.Store model credentials in
.envfiles.envfile" and "2. Use credentials in your Jupyter Notebook") with tabbed panels for sub-steps (get snippet vs. create file) and for with/without monitoring examples.documentparameter to thevm.init()examples, consistent with the install and initialization page changes.Enable monitoring
panel-tabset) with three tabs:_code-snippet.qmdinclude, instructs selectingMonitoringfrom the document dropdown, and setting the monitoring flag to true.document="monitoring"parameter in the example and a collapsible callout explaining how to use.envfiles with monitoring.vm.init()example now includesdocument="monitoring"(requiring>=2.12.0).Quickstarts (Model Development & Model Validation)
Updated conditional content based on a custom
includes.developermetadata flag: Added a new step to select the document from the dropdown: Development for developers, Validation for validators.get-started/common-steps/_get-your-code-snippet.qmdTraining (
training/common-slides/_get-your-code-snippet.qmd,training/common-slides/_retrieve-your-code-snippet.qmd)Common training slides were substantially expanded to support conditional content based on a custom
includes.developermetadata flag:includes.developer: true— Slides instruct selectingDevelopmentfrom the document dropdown.includes.developeris absent — Slides instruct selectingValidationfrom the document dropdown.Updates to notebook listing population Python scripts
site/scripts/developer-sidebar scripts updated
The two scripts in this directory auto-populate the listing tabs on the following landing pages from notebooks sourced from the
validmind-library:site/scripts/developer-sidebar/update_how_tos.pysite/scripts/developer-sidebar/update_use_cases.pyAdded functionality for including
page-size: 4to each listing tab so that the entries are paginated instead of stretching down really far.Pages updated
Tested the updated scripts — scripts added
page-size: 4to the aforementioned landing pages, paginating notebook cards to show 4 per tabbed section instead of displaying all at once.How to test
Click on the live previews and compare the changes with the help of the detailed change log above:
old-install.mov
new-install.mov
.envfilesold-credentials.mov
new-credentials.mov
old-monitoring.mov
new-monitoring.mov
developer-old.mov
developer-new.mov
validator-old.mov
validator-new.mov
old-features.mov
new-features.mov
old-samples.mov
new-samples.mov
What needs special review?
Important
Some instances of the rename (model documentation > Development) were left untouched (I only updated the images or text relevant to retrieving the code snippet) as this is covered by sc-14434.
Dependencies, breaking changes, and deployment notes
Note
Notebooks /
validmind-libraryside hasn't been updated — opened related sc-15077 to deal with this as it's got its own requirements. When changes are complete there, I will pull the updates back into thedocumentationrepo side.Release notes
Covered in validmind/validmind-library#479.
Checklist