Skip to content

Commit 3012849

Browse files
authored
Pulling in latest changes from PR184 (#350)
* Pulled in latest test descriptions Sept 03 2024 * Example retrieval for process docs
1 parent f67e76d commit 3012849

File tree

149 files changed

+3087
-2795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3087
-2795
lines changed

site/notebooks.zip

-23 Bytes
Binary file not shown.

site/notebooks/code_samples/customization/customizing_tests_with_output_templates.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,10 @@
631631
"\n",
632632
"#### Add the output template to the documentation template\n",
633633
"\n",
634-
"First, go to your project in the ValidMind UI and go to Settings > Templates. Find the Binary Classification Template that is used by the Customer Churn project. Click on the `Edit` button to bring up the template editor. Then, add the following content block below the existing `validmind.model_validation.sklearn.ClassifierPerformance` test:\n",
634+
"Head to the ValidMind platform UI to [customize your documentation template](https://docs.validmind.ai/guide/model-documentation/customize-documentation-templates.html). \n",
635+
"\n",
636+
"- Find the Binary Classification Template that is used by the Customer Churn model\n",
637+
"- Add the following content block below the existing `validmind.model_validation.sklearn.ClassifierPerformance` test:\n",
635638
"\n",
636639
"```yaml\n",
637640
"- content_type: metric\n",

site/notebooks/code_samples/nlp_and_llm/foundation_models_integration_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
"cell_type": "markdown",
278278
"metadata": {},
279279
"source": [
280-
"Next, use the ValidMind Developer Framework to run validation tests on the model. The `vm.run_documentation_tests` function analyzes the current project's documentation template and collects all the tests associated with it into a test suite.\n",
280+
"Next, use the ValidMind Developer Framework to run validation tests on the model. The `vm.run_documentation_tests` function analyzes the current model's documentation template and collects all the tests associated with it into a test suite.\n",
281281
"\n",
282282
"The function then runs the test suite, logs the results to the ValidMind API and displays them to you.\n"
283283
]

site/notebooks/code_samples/nlp_and_llm/rag_documentation_demo.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"source": [
8282
"### ValidMind Initialization\n",
8383
"\n",
84-
"Now we will import and initialize the ValidMind framework so we can connect to our project in the ValidMind platform. This will let us log inputs, plots, and test results to our model documentation."
84+
"Now we will import and initialize the ValidMind framework so we can connect to our model in the ValidMind platform. This will let us log inputs, plots, and test results to our model documentation."
8585
]
8686
},
8787
{
@@ -138,7 +138,7 @@
138138
"source": [
139139
"# Dataset Loader\n",
140140
"\n",
141-
"Great, now that we have all of our dependencies installed, the developer framework initialized and connected to our model documentation project and our OpenAI API key setup, we can go ahead and load our datasets. We will use the synthetic `RFP` dataset included with ValidMind for this notebook. This dataset contains a variety of RFP questions and ground truth answers that we can use both as the source where our Retriever will search for similar question-answer pairs as well as our test set for evaluating the performance of our RAG model. To do this, we just have to load it and call the preprocess function to get a split of the data into train and test sets."
141+
"Great, now that we have all of our dependencies installed, the developer framework initialized and connected to our model and our OpenAI API key setup, we can go ahead and load our datasets. We will use the synthetic `RFP` dataset included with ValidMind for this notebook. This dataset contains a variety of RFP questions and ground truth answers that we can use both as the source where our Retriever will search for similar question-answer pairs as well as our test set for evaluating the performance of our RAG model. To do this, we just have to load it and call the preprocess function to get a split of the data into train and test sets."
142142
]
143143
},
144144
{
@@ -399,7 +399,7 @@
399399
"cell_type": "markdown",
400400
"metadata": {},
401401
"source": [
402-
"What we have done here is to initialize the `OpenAIEmbeddings` class so it uses OpenAI's `text-embedding-3-small` model. We then created an `embed` function that takes in an `input` dictionary and uses the `embed_query` method of the embedding client to compute the embeddings of the `question`. We use an `embed` function since that is how ValidMind supports any custom model. We will use this strategy for the retrieval and generator models as well but you could also use, say, a HuggingFace model directly. See the documentation for more information on which model types are directly supported - [ValidMind Documentation](https://docs.validmind.ai/validmind/validmind.html)... Finally, we use the `init_model` function from the ValidMind framework to create a `VMModel` object that can be used in ValidMind tests. This also logs the model to our model documentation project and any test that uses the model will be linked to the logged model and its metadata."
402+
"What we have done here is to initialize the `OpenAIEmbeddings` class so it uses OpenAI's `text-embedding-3-small` model. We then created an `embed` function that takes in an `input` dictionary and uses the `embed_query` method of the embedding client to compute the embeddings of the `question`. We use an `embed` function since that is how ValidMind supports any custom model. We will use this strategy for the retrieval and generator models as well but you could also use, say, a HuggingFace model directly. See the documentation for more information on which model types are directly supported - [ValidMind Documentation](https://docs.validmind.ai/validmind/validmind.html)... Finally, we use the `init_model` function from the ValidMind framework to create a `VMModel` object that can be used in ValidMind tests. This also logs the model to our model documentation and any test that uses the model will be linked to the logged model and its metadata."
403403
]
404404
},
405405
{

site/notebooks/how_to/load_datasets_predictions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"\n",
189189
"### Preview the documentation template\n",
190190
"\n",
191-
"A template predefines sections for your documentation project and provides a general outline to follow, making the documentation process much easier.\n",
191+
"A template predefines sections for your model documentation and provides a general outline to follow, making the documentation process much easier.\n",
192192
"\n",
193193
"You will upload documentation and test results into this template later on. For now, take a look at the structure that the template provides with the `vm.preview_template()` function from the ValidMind library and note the empty sections:\n"
194194
]

site/notebooks/how_to/run_documentation_tests_with_config.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
"\n",
188188
"### Preview the documentation template\n",
189189
"\n",
190-
"A template predefines sections for your documentation project and provides a general outline to follow, making the documentation process much easier.\n",
190+
"A template predefines sections for your model documentation and provides a general outline to follow, making the documentation process much easier.\n",
191191
"\n",
192192
"You will upload documentation and test results into this template later on. For now, take a look at the structure that the template provides with the `vm.preview_template()` function from the ValidMind library and note the empty sections:\n"
193193
]

site/notebooks/how_to/run_tests_that_require_multiple_datasets.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"\n",
186186
"### Preview the documentation template\n",
187187
"\n",
188-
"A template predefines sections for your documentation project and provides a general outline to follow, making the documentation process much easier.\n",
188+
"A template predefines sections for your model documentation and provides a general outline to follow, making the documentation process much easier.\n",
189189
"\n",
190190
"You will upload documentation and test results into this template later on. For now, take a look at the structure that the template provides with the `vm.preview_template()` function from the ValidMind library and note the empty sections:\n"
191191
]

site/python-docs/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/python-docs/validmind.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h1 class="modulename">
150150
<section id="__version__">
151151
<div class="attr variable">
152152
<span class="name">__version__</span> =
153-
<span class="default_value">&#39;2.5.7&#39;</span>
153+
<span class="default_value">&#39;2.5.13&#39;</span>
154154

155155

156156
</div>
@@ -685,7 +685,7 @@ <h6 id="arguments">Arguments:</h6>
685685

686686
<ul>
687687
<li><strong>results (list):</strong> A list of ThresholdTestResults objects</li>
688-
<li><strong>inputs (list):</strong> A list of input keys (names) that were used to run the test</li>
688+
<li><strong>inputs (list):</strong> A list of input IDs that were used to run the test</li>
689689
</ul>
690690

691691
<h6 id="raises">Raises:</h6>

site/python-docs/validmind/tests.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)