Skip to content

Commit 2afde58

Browse files
authored
Merge pull request #644 from validmind/beck/fix-staging-conflict
Fix main > staging conflict — Feb 3, 2025
2 parents f7c0d1e + d218ed9 commit 2afde58

File tree

7 files changed

+1197
-13
lines changed

7 files changed

+1197
-13
lines changed

site/developer/model-testing/testing-overview.qmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ listing:
5151
contents:
5252
- ../../notebooks/code_samples/custom_tests/implement_custom_tests.ipynb
5353
- ../../notebooks/code_samples/custom_tests/integrate_external_test_providers.ipynb
54+
- path: /notebooks/how_to/add_context_to_llm_descriptions.ipynb
55+
title: "Add context to LLM-generated test descriptions"
56+
description: "Learn how to add custom use case and test-specific context to your LLM-generated test descriptions."
5457
---
5558

5659
{{< var vm.product >}} provides many built-in tests and test suites, which help you produce documentation during stages of the model development lifecycle where you need to validate that your work satisfies MRM (model risk management) requirements.

site/faq/faq-testing.qmd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Yes, {{< var vm.product >}} allows tests to be manipulated at several levels:
3838
- You can change the thresholds and parameters for default tests already available in the {{< var vm.developer >}} — for instance, changing the threshold parameter for the class imbalance flag.[^5]
3939
- You can also connect your own custom tests with the {{< var validmind.developer >}}. These custom tests are configurable and are able to run programmatically, just like the rest of the {{< var vm.developer >}}.[^6]
4040

41+
::: {.callout}
42+
In addition to custom tests, you can also add use case and test-specific context for any test to enhance the LLM-generated test descriptions using the {{< var validmind.developer >}}.[^7]
43+
44+
:::
45+
4146
{{< include _faq-explainability.qmd >}}
4247

4348
{{< include _faq-synthetic-datasets.qmd >}}
@@ -62,4 +67,6 @@ Yes, {{< var vm.product >}} allows tests to be manipulated at several levels:
6267

6368
[^5]: [`ClassImbalance()`](/validmind/validmind/tests/data_validation/ClassImbalance.html#ClassImbalance)
6469

65-
[^6]: [Can I use my own tests?](/developer/model-testing/testing-overview.qmd#can-i-use-my-own-tests)
70+
[^6]: [Can I use my own tests?](/developer/model-testing/testing-overview.qmd#can-i-use-my-own-tests)
71+
72+
[^7]: [Add context to LLM-generated test descriptions](/notebooks/how_to/add_context_to_llm_descriptions.ipynb)

site/guide/model-documentation/work-with-content-blocks.qmd

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ While editing a simple text block, you can insert math equations using the formu
8383

8484
### Generate Text with AI <sup>[beta]{.smallcaps}</sup>
8585

86+
::: {.callout title="Have you logged your tests?"}
87+
Generating content drafts for your model documentation works best after you've logged tests and test descriptions for your model's tests with the {{< var validmind.developer >}},[^8] as existing test descriptions provide more context for the large language model (LLM) to draw upon.
88+
89+
:::
90+
8691
While editing a simple text block, you can have {{< var vm.product >}} assist you with generating content drafts:
8792

8893
1. Click **{{< fa diamond >}} <sup>[beta]{.smallcaps}</sup> (Generate Text with AI)** in the toolbar while editing a content block.
@@ -92,19 +97,18 @@ While editing a simple text block, you can have {{< var vm.product >}} assist yo
9297
3. Review the draft composed by the {{< var vm.product >}} AI Content Builder for accuracy and relevance, then:
9398

9499
- Click **{{< fa download >}} Accept Text** to insert the draft into your content block.
95-
- Click **{{< fa rotate >}} Try Again** to regenerate a different draft.
100+
- Click **{{< fa rotate >}} Try Again** to regenerate a different draft.g
96101
- Click **Cancel** to discard the draft and return to your documentation section.
97102

98103
4. After you insert the AI-generated draft, click on the text box to make the necessary edits and adjustments to your copy:
99104

100105
- Ensure that content is in compliance with the quality guidelines outlined by your organization.
101-
- Use the content editing toolbar[^8] just as you would with any other text block.
106+
- Use the content editing toolbar[^9] just as you would with any other text block.
102107

103108
![Generating content with AI within a simple text block](generate-with-ai.gif){width=90% fig-alt="An animation that showcases the Generate with AI feature within a simple text block" .screenshot}
104109

105-
::: {.callout}
106-
When generating content drafts with AI, accepted versions and edits are retained in your {{< fa wifi >}} Model Activity[^9] just like other updates to your documentation, reports, or plans.
107-
:::
110+
When generating content drafts with AI, accepted versions and edits are retained in your {{< fa wifi >}} Model Activity[^10] just like other updates to your documentation, reports, or plans.
111+
108112

109113
## Remove content blocks
110114

@@ -114,7 +118,7 @@ Test-driven or metric over time blocks can be re-added later on but **text block
114118

115119
1. In the left sidebar, click **{{< fa cubes >}} Inventory**.
116120

117-
2. Select a model or find your model by applying a filter or searching for it.[^10]
121+
2. Select a model or find your model by applying a filter or searching for it.[^11]
118122

119123
3. In the left sidebar that appears for your model, click **{{< fa book-open >}} Documentation**, **{{< fa shield >}} Validation Report**, or **{{< fa desktop >}} Ongoing Monitoring**.
120124

@@ -159,8 +163,10 @@ Test-driven or metric over time blocks can be re-added later on but **text block
159163

160164
[^7]: [Collaborate with others](/guide/model-documentation/collaborate-with-others.qmd)
161165

162-
[^8]: [Content editing toolbar](#content-editing-toolbar)
166+
[^8]: [Run tests and test suites](/developer/model-testing/testing-overview.qmd)
167+
168+
[^9]: [Content editing toolbar](#content-editing-toolbar)
163169

164-
[^9]: [View model activity](/guide/model-inventory/view-model-activity.qmd)
170+
[^10]: [View model activity](/guide/model-inventory/view-model-activity.qmd)
165171

166-
[^10]: [Working with the model inventory](/guide/model-inventory/working-with-model-inventory.qmd#search-filter-and-sort-models)
172+
[^11]: [Working with the model inventory](/guide/model-inventory/working-with-model-inventory.qmd#search-filter-and-sort-models)

site/notebooks.zip

7.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)